[precision] [fixes]

This commit is contained in:
Anand Doshi
2013-05-10 19:23:02 +05:30
parent aab81626ce
commit 5af812a832
3 changed files with 66 additions and 56 deletions

View File

@@ -466,9 +466,9 @@ class DocType(BuyingController):
# expense will be booked in sales invoice
stock_item_and_auto_inventory_accounting = True
valuation_amt = (flt(item.amount, self.precision.item.amount) +
flt(item.item_tax_amount, self.precision.item.item_tax_amount) +
flt(item.rm_supp_cost, self.precision.item.rm_supp_cost))
valuation_amt = (flt(item.amount, self.precision("amount", item.parentfield)) +
flt(item.item_tax_amount, self.precision("item_tax_amount", item.parentfield)) +
flt(item.rm_supp_cost, self.precision("rm_supp_cost", item.parentfield)))
gl_entries.append(
self.get_gl_dict({