fixes in tax controller and tests

This commit is contained in:
Anand Doshi
2012-12-04 16:17:48 +05:30
parent cca5fc8c74
commit 188f977f73
4 changed files with 831 additions and 5 deletions

View File

@@ -90,6 +90,7 @@ class TransactionController(DocListController):
"plc_exchange_rate": "plc_conversion_rate",
"tax_calculation": "other_charges_calculation",
"cost_center": "cost_center_other_charges",
})
else:
self._fmap = webnotes.DictObj({
@@ -113,5 +114,10 @@ class TransactionController(DocListController):
"valuation_tax_amount": "item_tax_amount"
})
if self.doc.doctype == "Purchase Invoice":
self._fmap.update({
"rate": "rate"
})
return self._fmap or webnotes.DictObj()