blob: acbe877a9365433ca88baea4c04da79a8c284d30 [file] [log] [blame]
Nabin Hait51834a42012-04-23 12:47:12 +05301# GL Mapper, Purchase Invoice with write off
2[
3
4 # These values are common in all dictionaries
5 {
Nabin Haitbc06c7c2012-10-03 11:13:12 +05306 u'creation': '2012-04-30 19:55:05',
7 u'docstatus': 0,
8 u'modified': '2012-10-03 11:08:09',
9 u'modified_by': u'Administrator',
10 u'owner': u'Administrator'
Nabin Hait51834a42012-04-23 12:47:12 +053011 },
12
13 # These values are common for all GL Mapper
14 {
15 'doc_type': u'Purchase Invoice with write off',
Nabin Haitbc06c7c2012-10-03 11:13:12 +053016 u'doctype': u'GL Mapper',
17 u'name': u'__common__'
Nabin Hait51834a42012-04-23 12:47:12 +053018 },
19
20 # These values are common for all GL Mapper Detail
21 {
Nabin Haitbc06c7c2012-10-03 11:13:12 +053022 u'doctype': u'GL Mapper Detail',
23 u'name': u'__common__',
Nabin Hait51834a42012-04-23 12:47:12 +053024 'parent': u'Purchase Invoice with write off',
25 'parentfield': u'fields',
26 'parenttype': u'GL Mapper'
27 },
28
29 # GL Mapper, Purchase Invoice with write off
30 {
Nabin Haitbc06c7c2012-10-03 11:13:12 +053031 u'doctype': u'GL Mapper',
32 u'name': u'Purchase Invoice with write off'
Nabin Hait51834a42012-04-23 12:47:12 +053033 },
34
35 # GL Mapper Detail
36 {
37 'account': u'expense_head',
38 'against': u'parent:credit_to',
39 'aging_date': u'parent:aging_date',
40 'company': u'parent:company',
41 'cost_center': u'cost_center',
42 'credit': u'value:0',
43 'debit': u'amount',
Nabin Haitbc06c7c2012-10-03 11:13:12 +053044 u'doctype': u'GL Mapper Detail',
Nabin Hait51834a42012-04-23 12:47:12 +053045 'fiscal_year': u'parent:fiscal_year',
46 'is_opening': u'parent:is_opening',
47 'posting_date': u'parent:posting_date',
48 'remarks': u'parent:remarks',
49 'table_field': u'entries',
50 'transaction_date': u'parent:voucher_date',
51 'voucher_no': u'parent:name',
52 'voucher_type': u'parent:doctype'
53 },
54
55 # GL Mapper Detail
56 {
57 'account': u'account_head',
58 'against': u'parent:credit_to',
59 'aging_date': u'parent:aging_date',
60 'company': u'parent:company',
61 'cost_center': u'cost_center',
Nabin Haitbc06c7c2012-10-03 11:13:12 +053062 'credit': u"value:d.fields.get('category') != 'Valuation' and d.fields.get('add_deduct_tax') == 'Deduct' and d.fields.get('tax_amount') or 0",
63 'debit': u"value:d.fields.get('category') != 'Valuation' and d.fields.get('add_deduct_tax') == 'Add' and d.fields.get('tax_amount') or 0",
64 u'doctype': u'GL Mapper Detail',
Nabin Hait51834a42012-04-23 12:47:12 +053065 'fiscal_year': u'parent:fiscal_year',
66 'is_opening': u'parent:is_opening',
67 'posting_date': u'parent:posting_date',
68 'remarks': u'parent:remarks',
69 'table_field': u'purchase_tax_details',
70 'transaction_date': u'parent:voucher_date',
71 'voucher_no': u'parent:name',
72 'voucher_type': u'parent:doctype'
73 },
74
75 # GL Mapper Detail
76 {
77 'account': u'tax_code',
78 'against': u'credit_to',
79 'aging_date': u'aging_date',
80 'company': u'company',
81 'credit': u'ded_amount',
82 'debit': u'value:0',
Nabin Haitbc06c7c2012-10-03 11:13:12 +053083 u'doctype': u'GL Mapper Detail',
Nabin Hait51834a42012-04-23 12:47:12 +053084 'fiscal_year': u'fiscal_year',
85 'is_opening': u'is_opening',
86 'posting_date': u'posting_date',
87 'remarks': u'remarks',
88 'transaction_date': u'voucher_date',
89 'voucher_no': u'name',
90 'voucher_type': u'doctype'
91 },
92
93 # GL Mapper Detail
94 {
95 'account': u'credit_to',
96 'against': u'against_expense_account',
97 'against_voucher': u'name',
98 'against_voucher_type': u"value:'Purchase Invoice'",
99 'aging_date': u'aging_date',
100 'company': u'company',
101 'credit': u'total_amount_to_pay',
102 'debit': u'value:0',
Nabin Haitbc06c7c2012-10-03 11:13:12 +0530103 u'doctype': u'GL Mapper Detail',
Nabin Hait51834a42012-04-23 12:47:12 +0530104 'fiscal_year': u'fiscal_year',
105 'is_opening': u'is_opening',
106 'posting_date': u'posting_date',
107 'remarks': u'remarks',
108 'transaction_date': u'voucher_date',
109 'voucher_no': u'name',
110 'voucher_type': u'doctype'
111 },
112
113 # GL Mapper Detail
114 {
115 'account': u'write_off_account',
116 'against': u'credit_to',
117 'aging_date': u'aging_date',
118 'company': u'company',
119 'cost_center': u'write_off_cost_center',
120 'credit': u'write_off_amount',
121 'debit': u'value:0',
Nabin Haitbc06c7c2012-10-03 11:13:12 +0530122 u'doctype': u'GL Mapper Detail',
Nabin Hait51834a42012-04-23 12:47:12 +0530123 'fiscal_year': u'fiscal_year',
124 'is_opening': u'is_opening',
125 'posting_date': u'posting_date',
126 'remarks': u'remarks',
127 'transaction_date': u'voucher_date',
128 'voucher_no': u'name',
129 'voucher_type': u'doctype'
130 }
131]