fixes in tax controller and tests
diff --git a/controllers/transaction_controller.py b/controllers/transaction_controller.py
index a7dbde1..07fdc67 100644
--- a/controllers/transaction_controller.py
+++ b/controllers/transaction_controller.py
@@ -90,6 +90,7 @@
"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 @@
"valuation_tax_amount": "item_tax_amount"
})
+
+ if self.doc.doctype == "Purchase Invoice":
+ self._fmap.update({
+ "rate": "rate"
+ })
return self._fmap or webnotes.DictObj()
\ No newline at end of file