openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #08573
[Bug 947834] [NEW] Compute tax in account module
Public bug reported:
In ~openerp/openobject-addons/6.1 : /account/account_invoice.py (revision 6646)
the rows 1576-1583 (account_invoice_tax, method: compute) return a wrong value.
In attach an example: the base value in tax frame is different from the untaxed value
I would suggest this correction:
# FIX: The rounding performed after the calculation
# 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: performing the round operation now
val['base'] = cur_obj.round(cr, uid, cur, val['base'])
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/947834
Title:
Compute tax in account module
Status in OpenERP Addons (modules):
New
Bug description:
In ~openerp/openobject-addons/6.1 : /account/account_invoice.py (revision 6646)
the rows 1576-1583 (account_invoice_tax, method: compute) return a wrong value.
In attach an example: the base value in tax frame is different from the untaxed value
I would suggest this correction:
# FIX: The rounding performed after the calculation
# 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: performing the round operation now
val['base'] = cur_obj.round(cr, uid, cur, val['base'])
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/947834/+subscriptions
Follow ups
References