[minor] [fix] precision for float fields on server-side

This commit is contained in:
Anand Doshi
2013-08-12 11:58:02 +05:30
parent cf2cf3897b
commit e42a0222d5
2 changed files with 3 additions and 2 deletions

View File

@@ -265,7 +265,7 @@ class AccountsController(TransactionBase):
tax.grand_total_for_current_item = \
flt(self.tax_doclist[i-1].grand_total_for_current_item +
current_tax_amount, self.precision("total", tax))
# in tax.total, accumulate grand total of each item
tax.total += tax.grand_total_for_current_item