← Back to team overview

openerp-india team mailing list archive

[Bug 947834] Re: Compute tax in account module

 

Hello Filippo,

I think you have bit wrong assumption about tax .Let me explain

We have boolean field  " Tax include in price"    in tax form view .
Now two probability

# 1 : Included or True : The value of tax will calculated in unit price
.Suppose unit price is 100 means  subtotal =82.64(base) and tax  =17.36
So total is 100,Here tax is 21%

#2:Excluded or false : The amount of tax is  x % of unit price
only.Suppose unit price is 100 and tax is 21% then tax is 21rs  and
total is 121 .

Right now both the scenario is working fine.your suggestion is not
efficient .Hope this will help you.

Thanks!!

** Changed in: openobject-addons
       Status: New => Incomplete

-- 
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