blob: 662cf8d1265d9eb77cff0c0514b7ffc5c96adc11 [file] [log] [blame]
Nabin Haitbc06c7c2012-10-03 11:13:12 +05301[
Anand Doshic3b9a002012-12-11 15:20:53 +05302 {
3 "owner": "Administrator",
4 "docstatus": 0,
Nabin Haita642ae12013-01-18 10:49:39 +05305 "creation": "2012-10-03 11:26:38",
Anand Doshic3b9a002012-12-11 15:20:53 +05306 "modified_by": "Administrator",
Nabin Haita642ae12013-01-18 10:49:39 +05307 "modified": "2013-01-18 10:39:38"
Anand Doshic3b9a002012-12-11 15:20:53 +05308 },
9 {
10 "doc_type": "Purchase Invoice",
11 "name": "__common__",
12 "doctype": "GL Mapper"
13 },
14 {
15 "name": "__common__",
16 "parent": "Purchase Invoice",
17 "doctype": "GL Mapper Detail",
18 "parenttype": "GL Mapper",
19 "parentfield": "fields"
20 },
21 {
22 "name": "Purchase Invoice",
23 "doctype": "GL Mapper"
24 },
25 {
26 "account": "expense_head",
27 "doctype": "GL Mapper Detail",
28 "company": "parent:company",
29 "debit": "amount",
30 "fiscal_year": "parent:fiscal_year",
31 "against": "parent:credit_to",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053032 "voucher_type": "parent:doctype",
Anand Doshic3b9a002012-12-11 15:20:53 +053033 "credit": "value:0",
34 "table_field": "entries",
35 "transaction_date": "parent:voucher_date",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053036 "aging_date": "parent:aging_date",
Anand Doshic3b9a002012-12-11 15:20:53 +053037 "is_opening": "parent:is_opening",
38 "remarks": "parent:remarks",
39 "posting_date": "parent:posting_date",
40 "voucher_no": "parent:name",
41 "cost_center": "cost_center"
42 },
43 {
44 "account": "account_head",
45 "doctype": "GL Mapper Detail",
46 "company": "parent:company",
47 "debit": "value:d.fields.get('category') != 'Valuation' and d.fields.get('add_deduct_tax') == 'Add' and d.fields.get('tax_amount') or 0",
48 "fiscal_year": "parent:fiscal_year",
49 "against": "parent:credit_to",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053050 "voucher_type": "parent:doctype",
Anand Doshic3b9a002012-12-11 15:20:53 +053051 "credit": "value:d.fields.get('category') != 'Valuation' and d.fields.get('add_deduct_tax') == 'Deduct' and d.fields.get('tax_amount') or 0",
52 "table_field": "purchase_tax_details",
53 "transaction_date": "parent:voucher_date",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053054 "aging_date": "parent:aging_date",
Anand Doshic3b9a002012-12-11 15:20:53 +053055 "is_opening": "parent:is_opening",
56 "remarks": "parent:remarks",
57 "posting_date": "parent:posting_date",
58 "voucher_no": "parent:name",
59 "cost_center": "cost_center"
60 },
61 {
Anand Doshic3b9a002012-12-11 15:20:53 +053062 "account": "credit_to",
63 "doctype": "GL Mapper Detail",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053064 "against_voucher": "name",
Anand Doshic3b9a002012-12-11 15:20:53 +053065 "against_voucher_type": "value:'Purchase Invoice'",
66 "company": "company",
67 "debit": "value:0",
68 "fiscal_year": "fiscal_year",
69 "against": "against_expense_account",
Anand Doshic3b9a002012-12-11 15:20:53 +053070 "voucher_type": "doctype",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053071 "credit": "total_amount_to_pay",
72 "transaction_date": "voucher_date",
73 "aging_date": "aging_date",
Anand Doshic3b9a002012-12-11 15:20:53 +053074 "is_opening": "is_opening",
75 "remarks": "remarks",
76 "posting_date": "posting_date",
77 "voucher_no": "name"
78 }
Nabin Haitbc06c7c2012-10-03 11:13:12 +053079]