← Back to team overview

openerp-india team mailing list archive

[Bug 707923] Re: [5 - 6.0 - 6.1] invoice tax - rounding issues and computation method

 

> Ferdinand @ Camptocamp (office-chricar) wrote on 2011-12-25:
> does this help ?
> http://bazaar.launchpad.net/~c2c/c2c-rd-addons/trunk/files/head:/c2c_account_tax_rounding/

Not quite.  as @mrockel described for most of all amounts it works now but still has problems with float issue for rounding when a (tax)amount is exactly in the middle.
e.g.
Item 1 = 96.75
Item 2 =   6.75
sub Total  = 103.50
Tax 19% = 19.66
GrandTotal = 123.16

This is wrong an should be 123.17

103.50 x 19%= 19.665 so Grant Total would be 123.165 wich is rounded to
123.16 instead of 123.17

I can confirm this

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

Title:
  [5 - 6.0 - 6.1] invoice tax - rounding issues and computation method

Status in OpenERP Addons (modules):
  Won't Fix

Bug description:
  see attachment

  due to rounding of the calculated tax for each position we get totals
  which are wrong.

  In Austria we usually group the basis per tax rate and calculate the
  tax from this basis to avoid such errors.

  in account/invoice.py
  class account_invoice_tax  - 
  def compute must be modified 

  actually only some lines of code to group the invoice lines before
  calculating the tax

  probably this has been discussed (but not solved) already

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/707923/+subscriptions