[fix] patches

This commit is contained in:
Rushabh Mehta
2015-02-25 15:55:57 +05:30
parent 2a21bc9fc2
commit 6cdfd1e976
3 changed files with 11 additions and 2 deletions

View File

@@ -217,7 +217,7 @@ class calculate_taxes_and_totals(object):
tax.grand_total_for_current_item = flt(item.net_amount + current_tax_amount, tax.precision("total"))
else:
tax.grand_total_for_current_item = \
flt(self.doc.get("taxes")[i-1].grand_total_for_current_item + current_tax_amount, tax.precision("total_taxes_and_charges"))
flt(self.doc.get("taxes")[i-1].grand_total_for_current_item + current_tax_amount, tax.precision("total"))
# in tax.total, accumulate grand total of each item
tax.total += tax.grand_total_for_current_item