Permalink
Browse files

Created initial fixtures

  • Loading branch information...
1 parent 9715c91 commit 72de84bb683a421de644fcb6e22683e532708bb6 @macropin macropin committed Jan 11, 2012
Showing with 150 additions and 64 deletions.
  1. +150 −0 src/adlibre_tms/apps/tms/fixtures/initial_data.json
  2. +0 −64 src/adlibre_tms/apps/tms/fixtures/tms.json
@@ -0,0 +1,150 @@
+[
+ {
+ "pk": 1,
+ "model": "tms.employee",
+ "fields": {
+ "user": 1
+ }
+ },
+ {
+ "pk": 1,
+ "model": "tms.project",
+ "fields": {
+ "project_name": "Adhoc",
+ "project_code": "ADHOC",
+ "is_billable": true
+ }
+ },
+ {
+ "pk": 2,
+ "model": "tms.project",
+ "fields": {
+ "project_name": "Project Work",
+ "project_code": "PROJ",
+ "is_billable": true
+ }
+ },
+ {
+ "pk": 3,
+ "model": "tms.project",
+ "fields": {
+ "project_name": "Maintenance",
+ "project_code": "MAINT",
+ "is_billable": true
+ }
+ },
+ {
+ "pk": 1,
+ "model": "tms.customer",
+ "fields": {
+ "customer_code": "MYCO",
+ "saasu_contact_uid": "",
+ "is_billable": false,
+ "customer_name": "My Company"
+ }
+ },
+ {
+ "pk": 2,
+ "model": "tms.customer",
+ "fields": {
+ "customer_code": "ACME",
+ "saasu_contact_uid": "",
+ "is_billable": true,
+ "customer_name": "Acme Inc"
+ }
+ },
+ {
+ "pk": 1,
+ "model": "tms.service",
+ "fields": {
+ "saasu_item_uid": "",
+ "service_name": "Website Development",
+ "is_billable": true,
+ "service_code": "Web Dev"
+ }
+ },
+ {
+ "pk": 2,
+ "model": "tms.service",
+ "fields": {
+ "saasu_item_uid": "",
+ "service_name": "Graphic Design",
+ "is_billable": true,
+ "service_code": "Graphic Design"
+ }
+ },
+ {
+ "pk": 1,
+ "model": "tms.job",
+ "fields": {
+ "customer": 2,
+ "project": 1,
+ "is_active": true,
+ "service": 1,
+ "timestamp": "2012-01-11 20:19:47"
+ }
+ },
+ {
+ "pk": 2,
+ "model": "tms.job",
+ "fields": {
+ "customer": 2,
+ "project": 1,
+ "is_active": true,
+ "service": 2,
+ "timestamp": "2012-01-11 20:19:55"
+ }
+ },
+ {
+ "pk": 1,
+ "model": "tms.expensetype",
+ "fields": {
+ "expense_type_name": "Meals",
+ "expense_type_code": "MEALS",
+ "saasu_account_uid": ""
+ }
+ },
+ {
+ "pk": 2,
+ "model": "tms.expensetype",
+ "fields": {
+ "expense_type_name": "Postage",
+ "expense_type_code": "POST",
+ "saasu_account_uid": ""
+ }
+ },
+ {
+ "pk": 1,
+ "model": "tms.paymentmethod",
+ "fields": {
+ "payment_method_code": "CASH",
+ "payment_method_name": "Cash"
+ }
+ },
+ {
+ "pk": 2,
+ "model": "tms.paymentmethod",
+ "fields": {
+ "payment_method_code": "CC",
+ "payment_method_name": "Credit Card"
+ }
+ },
+ {
+ "pk": 1,
+ "model": "tms.currency",
+ "fields": {
+ "currency_name": "Australian Dollar",
+ "currency_code": "AUD",
+ "currency_symbol": "$"
+ }
+ },
+ {
+ "pk": 2,
+ "model": "tms.currency",
+ "fields": {
+ "currency_name": "US Dollar",
+ "currency_code": "USD",
+ "currency_symbol": "$"
+ }
+ }
+]
@@ -1,64 +0,0 @@
-[
-{ "pk": 1,
- "model":
- "tms.employee",
- "fields": {"user": 1}},
- {"pk": 1,
- "model": "tms.project",
- "fields": {
- "project_name": "Maintenance",
- "project_code": "Maintenance",
- "is_billable": true
- }
- },
-
-{ "pk": 2,
- "model": "tms.project",
- "fields": {
- "project_name": "foo project",
- "project_code": "FOO",
- "is_billable": true
- }
-},
-
-{ "pk": 1,
- "model":
- "tms.customer",
- "fields": {
- "customer_code": "ADL",
- "is_billable": false,
- "customer_name": "Adlibre"
- }
-},
-
-{ "pk": 2,
- "model": "tms.customer",
- "fields": {
- "customer_code": "FCB",
- "is_billable": true,
- "customer_name": "Fishcart"
- }
-},
-
-{ "pk": 3,
- "model": "tms.customer",
- "fields": {
- "customer_code": "PI",
- "is_billable": true,
- "customer_name": "PeopleInsite"
- }
-},
-
-{ "pk": 1,
- "model": "tms.service",
- "fields": {
- "service_name": "Website Development",
- "is_billable": true,
- "service_code": "Web Dev"
- }
-},
-
-{ "pk": 2,
- "model": "tms.service",
- "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}}]
-

0 comments on commit 72de84b

Please sign in to comment.