blob: 05abfff9d7e39b061090fbf21d95fe1ed4ebfec5 [file] [log] [blame]
Nabin Hait51834a42012-04-23 12:47:12 +05301[
Anand Doshic3b9a002012-12-11 15:20:53 +05302 {
3 "owner": "Administrator",
4 "docstatus": 0,
5 "creation": "2012-04-30 19:55:05",
6 "modified_by": "Administrator",
7 "modified": "2012-10-03 11:08:09"
8 },
9 {
10 "doc_type": "Purchase Invoice with write off",
11 "name": "__common__",
12 "doctype": "GL Mapper"
13 },
14 {
15 "name": "__common__",
16 "parent": "Purchase Invoice with write off",
17 "doctype": "GL Mapper Detail",
18 "parenttype": "GL Mapper",
19 "parentfield": "fields"
20 },
21 {
22 "name": "Purchase Invoice with write off",
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",
32 "aging_date": "parent:aging_date",
33 "credit": "value:0",
34 "table_field": "entries",
35 "transaction_date": "parent:voucher_date",
36 "voucher_type": "parent:doctype",
37 "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",
50 "aging_date": "parent:aging_date",
51 "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",
54 "voucher_type": "parent:doctype",
55 "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 {
62 "account": "tax_code",
63 "doctype": "GL Mapper Detail",
64 "company": "company",
65 "debit": "value:0",
66 "fiscal_year": "fiscal_year",
67 "against": "credit_to",
68 "aging_date": "aging_date",
69 "credit": "ded_amount",
70 "transaction_date": "voucher_date",
71 "voucher_type": "doctype",
72 "is_opening": "is_opening",
73 "remarks": "remarks",
74 "posting_date": "posting_date",
75 "voucher_no": "name"
76 },
77 {
78 "account": "credit_to",
79 "doctype": "GL Mapper Detail",
80 "credit": "total_amount_to_pay",
81 "against_voucher_type": "value:'Purchase Invoice'",
82 "company": "company",
83 "debit": "value:0",
84 "fiscal_year": "fiscal_year",
85 "against": "against_expense_account",
86 "aging_date": "aging_date",
87 "against_voucher": "name",
88 "transaction_date": "voucher_date",
89 "voucher_type": "doctype",
90 "is_opening": "is_opening",
91 "remarks": "remarks",
92 "posting_date": "posting_date",
93 "voucher_no": "name"
94 },
95 {
96 "account": "write_off_account",
97 "doctype": "GL Mapper Detail",
98 "company": "company",
99 "debit": "value:0",
100 "fiscal_year": "fiscal_year",
101 "against": "credit_to",
102 "aging_date": "aging_date",
103 "credit": "write_off_amount",
104 "transaction_date": "voucher_date",
105 "voucher_type": "doctype",
106 "is_opening": "is_opening",
107 "remarks": "remarks",
108 "posting_date": "posting_date",
109 "voucher_no": "name",
110 "cost_center": "write_off_cost_center"
111 }
Nabin Hait51834a42012-04-23 12:47:12 +0530112]