← Back to team overview

openerp-india team mailing list archive

[Bug 947834] Re: Compute tax in account module

 

Hello Filippo,

I have checked your issue again with your example .But it's calculating right amount of base for me .
For your more  reference ,I have attached screen shot . Please give a look.

Remind you. Per Unit price - discount => total ,then calculate tax
amount of total

Thanks!!

** Attachment added: "For more info... see this Screen-shot"
   https://bugs.launchpad.net/openobject-addons/+bug/947834/+attachment/2827651/+files/tax.png

-- 
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):
  Incomplete

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


References