Fixes in valuation rate calculation in purchase receipt

This commit is contained in:
Nabin Hait 2014-01-03 11:16:16 +05:30
parent ffc2f8885b
commit 28acaeb345

View File

@ -184,7 +184,7 @@ class BuyingController(StockController):
for item in self.doclist.get({"parentfield": parentfield}): for item in self.doclist.get({"parentfield": parentfield}):
if item.item_code and item.qty and item.item_code in stock_items: if item.item_code and item.qty and stock_items_amount and item.item_code in stock_items:
item.item_tax_amount = flt(flt(item.amount) * total_valuation_amount \ item.item_tax_amount = flt(flt(item.amount) * total_valuation_amount \
/ stock_items_amount, self.precision("item_tax_amount", item)) / stock_items_amount, self.precision("item_tax_amount", item))