blob: f32b13b2440f3ec54a670fda1e3b162fa778028e [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,
Rushabh Mehta6f9915c2013-01-16 17:48:17 +05305 "creation": "2012-10-03 11:29:52",
Anand Doshic3b9a002012-12-11 15:20:53 +05306 "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",
Anand Doshic3b9a002012-12-11 15:20:53 +053027 "company": "parent:company",
Anand Doshic3b9a002012-12-11 15:20:53 +053028 "fiscal_year": "parent:fiscal_year",
29 "against": "parent:credit_to",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053030 "voucher_type": "parent:doctype",
Anand Doshic3b9a002012-12-11 15:20:53 +053031 "credit": "value:0",
32 "table_field": "entries",
33 "transaction_date": "parent:voucher_date",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053034 "aging_date": "parent:aging_date",
35 "doctype": "GL Mapper Detail",
Anand Doshic3b9a002012-12-11 15:20:53 +053036 "remarks": "parent:remarks",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053037 "is_opening": "parent:is_opening",
Anand Doshic3b9a002012-12-11 15:20:53 +053038 "voucher_no": "parent:name",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053039 "debit": "amount",
40 "cost_center": "cost_center",
41 "posting_date": "parent:posting_date"
Anand Doshic3b9a002012-12-11 15:20:53 +053042 },
43 {
44 "account": "account_head",
Anand Doshic3b9a002012-12-11 15:20:53 +053045 "company": "parent:company",
Anand Doshic3b9a002012-12-11 15:20:53 +053046 "fiscal_year": "parent:fiscal_year",
47 "against": "parent:credit_to",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053048 "voucher_type": "parent:doctype",
Anand Doshic3b9a002012-12-11 15:20:53 +053049 "credit": "value:d.fields.get('category') != 'Valuation' and d.fields.get('add_deduct_tax') == 'Deduct' and d.fields.get('tax_amount') or 0",
50 "table_field": "purchase_tax_details",
51 "transaction_date": "parent:voucher_date",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053052 "aging_date": "parent:aging_date",
53 "doctype": "GL Mapper Detail",
Anand Doshic3b9a002012-12-11 15:20:53 +053054 "remarks": "parent:remarks",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053055 "is_opening": "parent:is_opening",
Anand Doshic3b9a002012-12-11 15:20:53 +053056 "voucher_no": "parent:name",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053057 "debit": "value:d.fields.get('category') != 'Valuation' and d.fields.get('add_deduct_tax') == 'Add' and d.fields.get('tax_amount') or 0",
58 "cost_center": "cost_center",
59 "posting_date": "parent:posting_date"
Anand Doshic3b9a002012-12-11 15:20:53 +053060 },
61 {
62 "account": "tax_code",
Anand Doshic3b9a002012-12-11 15:20:53 +053063 "company": "company",
Anand Doshic3b9a002012-12-11 15:20:53 +053064 "fiscal_year": "fiscal_year",
65 "against": "credit_to",
Anand Doshic3b9a002012-12-11 15:20:53 +053066 "voucher_type": "doctype",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053067 "credit": "ded_amount",
68 "debit": "value:0",
69 "transaction_date": "voucher_date",
70 "aging_date": "aging_date",
71 "doctype": "GL Mapper Detail",
Anand Doshic3b9a002012-12-11 15:20:53 +053072 "remarks": "remarks",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053073 "is_opening": "is_opening",
74 "voucher_no": "name",
75 "posting_date": "posting_date"
Anand Doshic3b9a002012-12-11 15:20:53 +053076 },
77 {
78 "account": "credit_to",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053079 "against_voucher": "name",
Anand Doshic3b9a002012-12-11 15:20:53 +053080 "against_voucher_type": "value:'Purchase Invoice'",
81 "company": "company",
Anand Doshic3b9a002012-12-11 15:20:53 +053082 "fiscal_year": "fiscal_year",
83 "against": "against_expense_account",
Anand Doshic3b9a002012-12-11 15:20:53 +053084 "voucher_type": "doctype",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053085 "credit": "total_amount_to_pay",
86 "debit": "value:0",
87 "transaction_date": "voucher_date",
88 "aging_date": "aging_date",
89 "doctype": "GL Mapper Detail",
Anand Doshic3b9a002012-12-11 15:20:53 +053090 "remarks": "remarks",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053091 "is_opening": "is_opening",
92 "voucher_no": "name",
93 "posting_date": "posting_date"
Anand Doshic3b9a002012-12-11 15:20:53 +053094 },
95 {
96 "account": "write_off_account",
Anand Doshic3b9a002012-12-11 15:20:53 +053097 "company": "company",
Anand Doshic3b9a002012-12-11 15:20:53 +053098 "fiscal_year": "fiscal_year",
99 "against": "credit_to",
Anand Doshic3b9a002012-12-11 15:20:53 +0530100 "voucher_type": "doctype",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +0530101 "credit": "write_off_amount",
102 "debit": "value:0",
103 "transaction_date": "voucher_date",
104 "aging_date": "aging_date",
105 "doctype": "GL Mapper Detail",
Anand Doshic3b9a002012-12-11 15:20:53 +0530106 "remarks": "remarks",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +0530107 "is_opening": "is_opening",
Anand Doshic3b9a002012-12-11 15:20:53 +0530108 "voucher_no": "name",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +0530109 "cost_center": "write_off_cost_center",
110 "posting_date": "posting_date"
Anand Doshic3b9a002012-12-11 15:20:53 +0530111 }
Nabin Hait51834a42012-04-23 12:47:12 +0530112]