Nabin Hait | bc06c7c | 2012-10-03 11:13:12 +0530 | [diff] [blame] | 1 | [ |
Anand Doshi | c3b9a00 | 2012-12-11 15:20:53 +0530 | [diff] [blame] | 2 | { |
| 3 | "owner": "Administrator", |
| 4 | "docstatus": 0, |
Rushabh Mehta | 6f9915c | 2013-01-16 17:48:17 +0530 | [diff] [blame] | 5 | "creation": "2012-10-03 11:29:52", |
Anand Doshi | c3b9a00 | 2012-12-11 15:20:53 +0530 | [diff] [blame] | 6 | "modified_by": "Administrator", |
| 7 | "modified": "2012-10-03 11:07:26" |
| 8 | }, |
| 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 Mehta | 6f9915c | 2013-01-16 17:48:17 +0530 | [diff] [blame] | 32 | "voucher_type": "parent:doctype", |
Anand Doshi | c3b9a00 | 2012-12-11 15:20:53 +0530 | [diff] [blame] | 33 | "credit": "value:0", |
| 34 | "table_field": "entries", |
| 35 | "transaction_date": "parent:voucher_date", |
Rushabh Mehta | 6f9915c | 2013-01-16 17:48:17 +0530 | [diff] [blame] | 36 | "aging_date": "parent:aging_date", |
Anand Doshi | c3b9a00 | 2012-12-11 15:20:53 +0530 | [diff] [blame] | 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", |
Rushabh Mehta | 6f9915c | 2013-01-16 17:48:17 +0530 | [diff] [blame] | 50 | "voucher_type": "parent:doctype", |
Anand Doshi | c3b9a00 | 2012-12-11 15:20:53 +0530 | [diff] [blame] | 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", |
Rushabh Mehta | 6f9915c | 2013-01-16 17:48:17 +0530 | [diff] [blame] | 54 | "aging_date": "parent:aging_date", |
Anand Doshi | c3b9a00 | 2012-12-11 15:20:53 +0530 | [diff] [blame] | 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", |
Rushabh Mehta | 6f9915c | 2013-01-16 17:48:17 +0530 | [diff] [blame] | 68 | "voucher_type": "doctype", |
Anand Doshi | c3b9a00 | 2012-12-11 15:20:53 +0530 | [diff] [blame] | 69 | "credit": "ded_amount", |
| 70 | "transaction_date": "voucher_date", |
Rushabh Mehta | 6f9915c | 2013-01-16 17:48:17 +0530 | [diff] [blame] | 71 | "aging_date": "aging_date", |
Anand Doshi | c3b9a00 | 2012-12-11 15:20:53 +0530 | [diff] [blame] | 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", |
Rushabh Mehta | 6f9915c | 2013-01-16 17:48:17 +0530 | [diff] [blame] | 80 | "against_voucher": "name", |
Anand Doshi | c3b9a00 | 2012-12-11 15:20:53 +0530 | [diff] [blame] | 81 | "against_voucher_type": "value:'Purchase Invoice'", |
| 82 | "company": "company", |
| 83 | "debit": "value:0", |
| 84 | "fiscal_year": "fiscal_year", |
| 85 | "against": "against_expense_account", |
Anand Doshi | c3b9a00 | 2012-12-11 15:20:53 +0530 | [diff] [blame] | 86 | "voucher_type": "doctype", |
Rushabh Mehta | 6f9915c | 2013-01-16 17:48:17 +0530 | [diff] [blame] | 87 | "credit": "total_amount_to_pay", |
| 88 | "transaction_date": "voucher_date", |
| 89 | "aging_date": "aging_date", |
Anand Doshi | c3b9a00 | 2012-12-11 15:20:53 +0530 | [diff] [blame] | 90 | "is_opening": "is_opening", |
| 91 | "remarks": "remarks", |
| 92 | "posting_date": "posting_date", |
| 93 | "voucher_no": "name" |
| 94 | } |
Nabin Hait | bc06c7c | 2012-10-03 11:13:12 +0530 | [diff] [blame] | 95 | ] |