credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #05202
lp:~credativ/openobject-addons/6.1-fix-tax-baseamount-differ-invoice into lp:~credativ/openobject-addons/6.1
Kinner Vachhani has proposed merging lp:~credativ/openobject-addons/6.1-fix-tax-baseamount-differ-invoice into lp:~credativ/openobject-addons/6.1.
Requested reviews:
credativ (credativ)
For more details, see:
https://code.launchpad.net/~credativ/openobject-addons/6.1-fix-tax-baseamount-differ-invoice/+merge/168118
Untax base amount rounding problem fix
--
https://code.launchpad.net/~credativ/openobject-addons/6.1-fix-tax-baseamount-differ-invoice/+merge/168118
Your team credativ is requested to review the proposed merge of lp:~credativ/openobject-addons/6.1-fix-tax-baseamount-differ-invoice into lp:~credativ/openobject-addons/6.1.
=== modified file 'account/account_invoice.py'
--- account/account_invoice.py 2013-01-31 10:22:57 +0000
+++ account/account_invoice.py 2013-06-07 16:07:42 +0000
@@ -1598,15 +1598,14 @@
for line in inv.invoice_line:
for tax in tax_obj.compute_all(cr, uid, line.invoice_line_tax_id, (line.price_unit* (1-(line.discount or 0.0)/100.0)), line.quantity, inv.address_invoice_id.id, line.product_id, inv.partner_id)['taxes']:
- tax['price_unit'] = cur_obj.round(cr, uid, cur, tax['price_unit'])
val={}
val['invoice_id'] = inv.id
val['name'] = tax['name']
val['amount'] = tax['amount']
val['manual'] = False
val['sequence'] = tax['sequence']
- val['base'] = tax['price_unit'] * line['quantity']
-
+ #[Fix] Tax calculation rounding
+ val['base'] = cur_obj.round(cr, uid, cur, tax['price_unit'] * line['quantity'])
if inv.type in ('out_invoice','in_invoice'):
val['base_code_id'] = tax['base_code_id']
val['tax_code_id'] = tax['tax_code_id']
Follow ups