Account : Corrected the rounding of base of account.invoice.tax
authorJMA(OpenERP) <>
Thu, 7 Oct 2010 09:01:57 +0000 (14:31 +0530)
committerJay (OpenERP) <jvo@tinyerp.com>
Thu, 7 Oct 2010 09:01:57 +0000 (14:31 +0530)
lp bug: https://launchpad.net/bugs/591662 fixed

bzr revid: jvo@tinyerp.com-20101007090157-jdfp5s1z2nfjunwh

addons/account/invoice.py

index 346013b..79d7572 100644 (file)
@@ -1273,6 +1273,7 @@ class account_invoice_tax(osv.osv):
                     tax_grouped[key]['tax_amount'] += val['tax_amount']
 
         for t in tax_grouped.values():
+            t['base'] = cur_obj.round(cr, uid, cur, t['base'])
             t['amount'] = cur_obj.round(cr, uid, cur, t['amount'])
             t['base_amount'] = cur_obj.round(cr, uid, cur, t['base_amount'])
             t['tax_amount'] = cur_obj.round(cr, uid, cur, t['tax_amount'])