blob: 5b47fd7747b1ccd611fe7de76c508e4dd9ac3a73 [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,
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:38:40"
Anand Doshic3b9a002012-12-11 15:20:53 +05308 },
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",
Nabin Haita642ae12013-01-18 10:49:39 +053027 "doctype": "GL Mapper Detail",
Anand Doshic3b9a002012-12-11 15:20:53 +053028 "company": "parent:company",
Nabin Haita642ae12013-01-18 10:49:39 +053029 "debit": "amount",
Anand Doshic3b9a002012-12-11 15:20:53 +053030 "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",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053037 "is_opening": "parent:is_opening",
Nabin Haita642ae12013-01-18 10:49:39 +053038 "remarks": "parent:remarks",
39 "posting_date": "parent:posting_date",
Anand Doshic3b9a002012-12-11 15:20:53 +053040 "voucher_no": "parent:name",
Nabin Haita642ae12013-01-18 10:49:39 +053041 "cost_center": "cost_center"
Anand Doshic3b9a002012-12-11 15:20:53 +053042 },
43 {
44 "account": "account_head",
Nabin Haita642ae12013-01-18 10:49:39 +053045 "doctype": "GL Mapper Detail",
Anand Doshic3b9a002012-12-11 15:20:53 +053046 "company": "parent:company",
Nabin Haita642ae12013-01-18 10:49:39 +053047 "debit": "value:d.fields.get('category') != 'Valuation' and d.fields.get('add_deduct_tax') == 'Add' and d.fields.get('tax_amount') or 0",
Anand Doshic3b9a002012-12-11 15:20:53 +053048 "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",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053055 "is_opening": "parent:is_opening",
Nabin Haita642ae12013-01-18 10:49:39 +053056 "remarks": "parent:remarks",
57 "posting_date": "parent:posting_date",
Anand Doshic3b9a002012-12-11 15:20:53 +053058 "voucher_no": "parent:name",
Nabin Haita642ae12013-01-18 10:49:39 +053059 "cost_center": "cost_center"
Anand Doshic3b9a002012-12-11 15:20:53 +053060 },
61 {
62 "account": "credit_to",
Nabin Haita642ae12013-01-18 10:49:39 +053063 "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",
Nabin Haita642ae12013-01-18 10:49:39 +053067 "debit": "value:0",
Anand Doshic3b9a002012-12-11 15:20:53 +053068 "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",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053072 "transaction_date": "voucher_date",
73 "aging_date": "aging_date",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053074 "is_opening": "is_opening",
Nabin Haita642ae12013-01-18 10:49:39 +053075 "remarks": "remarks",
76 "posting_date": "posting_date",
77 "voucher_no": "name"
Anand Doshic3b9a002012-12-11 15:20:53 +053078 },
79 {
80 "account": "write_off_account",
Nabin Haita642ae12013-01-18 10:49:39 +053081 "doctype": "GL Mapper Detail",
Anand Doshic3b9a002012-12-11 15:20:53 +053082 "company": "company",
Nabin Haita642ae12013-01-18 10:49:39 +053083 "debit": "value:0",
Anand Doshic3b9a002012-12-11 15:20:53 +053084 "fiscal_year": "fiscal_year",
85 "against": "credit_to",
Anand Doshic3b9a002012-12-11 15:20:53 +053086 "voucher_type": "doctype",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053087 "credit": "write_off_amount",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053088 "transaction_date": "voucher_date",
89 "aging_date": "aging_date",
Rushabh Mehta6f9915c2013-01-16 17:48:17 +053090 "is_opening": "is_opening",
Nabin Haita642ae12013-01-18 10:49:39 +053091 "remarks": "remarks",
92 "posting_date": "posting_date",
Anand Doshic3b9a002012-12-11 15:20:53 +053093 "voucher_no": "name",
Nabin Haita642ae12013-01-18 10:49:39 +053094 "cost_center": "write_off_cost_center"
Anand Doshic3b9a002012-12-11 15:20:53 +053095 }
Nabin Hait51834a42012-04-23 12:47:12 +053096]