Skip to content
This repository
Browse code

Created initial fixtures

  • Loading branch information...
commit 72de84bb683a421de644fcb6e22683e532708bb6 1 parent 9715c91
Andrew Cutler macropin authored
150 src/adlibre_tms/apps/tms/fixtures/initial_data.json
... ... @@ -0,0 +1,150 @@
  1 +[
  2 + {
  3 + "pk": 1,
  4 + "model": "tms.employee",
  5 + "fields": {
  6 + "user": 1
  7 + }
  8 + },
  9 + {
  10 + "pk": 1,
  11 + "model": "tms.project",
  12 + "fields": {
  13 + "project_name": "Adhoc",
  14 + "project_code": "ADHOC",
  15 + "is_billable": true
  16 + }
  17 + },
  18 + {
  19 + "pk": 2,
  20 + "model": "tms.project",
  21 + "fields": {
  22 + "project_name": "Project Work",
  23 + "project_code": "PROJ",
  24 + "is_billable": true
  25 + }
  26 + },
  27 + {
  28 + "pk": 3,
  29 + "model": "tms.project",
  30 + "fields": {
  31 + "project_name": "Maintenance",
  32 + "project_code": "MAINT",
  33 + "is_billable": true
  34 + }
  35 + },
  36 + {
  37 + "pk": 1,
  38 + "model": "tms.customer",
  39 + "fields": {
  40 + "customer_code": "MYCO",
  41 + "saasu_contact_uid": "",
  42 + "is_billable": false,
  43 + "customer_name": "My Company"
  44 + }
  45 + },
  46 + {
  47 + "pk": 2,
  48 + "model": "tms.customer",
  49 + "fields": {
  50 + "customer_code": "ACME",
  51 + "saasu_contact_uid": "",
  52 + "is_billable": true,
  53 + "customer_name": "Acme Inc"
  54 + }
  55 + },
  56 + {
  57 + "pk": 1,
  58 + "model": "tms.service",
  59 + "fields": {
  60 + "saasu_item_uid": "",
  61 + "service_name": "Website Development",
  62 + "is_billable": true,
  63 + "service_code": "Web Dev"
  64 + }
  65 + },
  66 + {
  67 + "pk": 2,
  68 + "model": "tms.service",
  69 + "fields": {
  70 + "saasu_item_uid": "",
  71 + "service_name": "Graphic Design",
  72 + "is_billable": true,
  73 + "service_code": "Graphic Design"
  74 + }
  75 + },
  76 + {
  77 + "pk": 1,
  78 + "model": "tms.job",
  79 + "fields": {
  80 + "customer": 2,
  81 + "project": 1,
  82 + "is_active": true,
  83 + "service": 1,
  84 + "timestamp": "2012-01-11 20:19:47"
  85 + }
  86 + },
  87 + {
  88 + "pk": 2,
  89 + "model": "tms.job",
  90 + "fields": {
  91 + "customer": 2,
  92 + "project": 1,
  93 + "is_active": true,
  94 + "service": 2,
  95 + "timestamp": "2012-01-11 20:19:55"
  96 + }
  97 + },
  98 + {
  99 + "pk": 1,
  100 + "model": "tms.expensetype",
  101 + "fields": {
  102 + "expense_type_name": "Meals",
  103 + "expense_type_code": "MEALS",
  104 + "saasu_account_uid": ""
  105 + }
  106 + },
  107 + {
  108 + "pk": 2,
  109 + "model": "tms.expensetype",
  110 + "fields": {
  111 + "expense_type_name": "Postage",
  112 + "expense_type_code": "POST",
  113 + "saasu_account_uid": ""
  114 + }
  115 + },
  116 + {
  117 + "pk": 1,
  118 + "model": "tms.paymentmethod",
  119 + "fields": {
  120 + "payment_method_code": "CASH",
  121 + "payment_method_name": "Cash"
  122 + }
  123 + },
  124 + {
  125 + "pk": 2,
  126 + "model": "tms.paymentmethod",
  127 + "fields": {
  128 + "payment_method_code": "CC",
  129 + "payment_method_name": "Credit Card"
  130 + }
  131 + },
  132 + {
  133 + "pk": 1,
  134 + "model": "tms.currency",
  135 + "fields": {
  136 + "currency_name": "Australian Dollar",
  137 + "currency_code": "AUD",
  138 + "currency_symbol": "$"
  139 + }
  140 + },
  141 + {
  142 + "pk": 2,
  143 + "model": "tms.currency",
  144 + "fields": {
  145 + "currency_name": "US Dollar",
  146 + "currency_code": "USD",
  147 + "currency_symbol": "$"
  148 + }
  149 + }
  150 +]
64 src/adlibre_tms/apps/tms/fixtures/tms.json
... ... @@ -1,64 +0,0 @@
1   -[
2   -{ "pk": 1,
3   - "model":
4   - "tms.employee",
5   - "fields": {"user": 1}},
6   - {"pk": 1,
7   - "model": "tms.project",
8   - "fields": {
9   - "project_name": "Maintenance",
10   - "project_code": "Maintenance",
11   - "is_billable": true
12   - }
13   - },
14   -
15   -{ "pk": 2,
16   - "model": "tms.project",
17   - "fields": {
18   - "project_name": "foo project",
19   - "project_code": "FOO",
20   - "is_billable": true
21   - }
22   -},
23   -
24   -{ "pk": 1,
25   - "model":
26   - "tms.customer",
27   - "fields": {
28   - "customer_code": "ADL",
29   - "is_billable": false,
30   - "customer_name": "Adlibre"
31   - }
32   -},
33   -
34   -{ "pk": 2,
35   - "model": "tms.customer",
36   - "fields": {
37   - "customer_code": "FCB",
38   - "is_billable": true,
39   - "customer_name": "Fishcart"
40   - }
41   -},
42   -
43   -{ "pk": 3,
44   - "model": "tms.customer",
45   - "fields": {
46   - "customer_code": "PI",
47   - "is_billable": true,
48   - "customer_name": "PeopleInsite"
49   - }
50   -},
51   -
52   -{ "pk": 1,
53   - "model": "tms.service",
54   - "fields": {
55   - "service_name": "Website Development",
56   - "is_billable": true,
57   - "service_code": "Web Dev"
58   - }
59   -},
60   -
61   -{ "pk": 2,
62   - "model": "tms.service",
63   - "fields": {"service_name": "Network & Server Administration", "is_billable": true, "service_code": "Network & Server"}}, {"pk": 1, "model": "tms.job", "fields": {"customer": 1, "project": 1, "is_active": true, "service": 1, "timestamp": "2010-03-30 22:40:02"}}, {"pk": 2, "model": "tms.job", "fields": {"customer": 1, "project": 1, "is_active": true, "service": 2, "timestamp": "2010-03-30 22:50:41"}}, {"pk": 3, "model": "tms.job", "fields": {"customer": 2, "project": 1, "is_active": true, "service": 1, "timestamp": "2010-03-30 22:51:56"}}, {"pk": 4, "model": "tms.job", "fields": {"customer": 3, "project": 1, "is_active": true, "service": 2, "timestamp": "2010-03-30 22:52:05"}}, {"pk": 1, "model": "tms.timesheet", "fields": {"comment": "A good timesheet entry", "is_billed": false, "timestamp": "2010-04-11 15:25:08", "start_time": "2010-03-30 22:53:02", "job": 1, "end_time": "2010-03-30 22:53:03", "employee": 1, "is_submitted": false}}, {"pk": 2, "model": "tms.timesheet", "fields": {"comment": "Working on tms on train", "is_billed": false, "timestamp": "2010-04-23 18:22:20", "start_time": "2010-04-15 18:16:41", "job": 3, "end_time": "2010-04-15 18:20:43", "employee": 1, "is_submitted": false}}, {"pk": 3, "model": "tms.timesheet", "fields": {"comment": "awesome", "is_billed": false, "timestamp": "2010-04-27 19:20:56", "start_time": "2010-04-27 19:20:34", "job": 2, "end_time": "2010-04-27 19:20:51", "employee": 1, "is_submitted": false}}]
64   -

0 comments on commit 72de84b

Please sign in to comment.
Something went wrong with that request. Please try again.