[precision] server side cleanup and client side precision method

This commit is contained in:
Anand Doshi
2013-05-11 19:39:53 +05:30
parent 5af812a832
commit 39384d36ea
4 changed files with 48 additions and 49 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("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)))
valuation_amt = (flt(item.amount, self.precision("amount", item)) +
flt(item.item_tax_amount, self.precision("item_tax_amount", item)) +
flt(item.rm_supp_cost, self.precision("rm_supp_cost", item)))
gl_entries.append(
self.get_gl_dict({