commonified some purchase code, added test case for auto inventory accounting for purchase invoice

This commit is contained in:
Anand Doshi
2013-02-27 18:10:30 +05:30
parent 9d794fccc1
commit 4a7248ee0b
7 changed files with 186 additions and 80 deletions

View File

@@ -211,6 +211,12 @@ class DocType:
'company_name':self.doc.name,
'group_or_ledger':'Ledger',
'parent_cost_center':'Root - ' + self.doc.abbr
},
{
'cost_center_name': 'Auto Inventory Accounting',
'company_name': self.doc.name,
'group_or_ledger': 'Ledger',
'parent_cost_center': 'Root - ' + self.doc.abbr
}
]
for cc in cc_list: