← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 591662] Re: base of account.invoice.tax is different from amount_untaxed of account.invoice

 

Hi,

do you know that the applied patch does not work? It still fails to
calculate the invoice and tax bases, they're different.

I have tested the patch from Eduard and it does work.

Please, can you re-read (and understand!) the whole conversation and
apply the patch from Eduard? And I suggest you to test your patches with
prices that actually have more than two decimal numbers so you'll see
how your patch fails.

-- 
base of account.invoice.tax is different from amount_untaxed of account.invoice
https://bugs.launchpad.net/bugs/591662
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Fix Released
Status in OpenObject Addons 5.0 series: New
Status in OpenObject Addons trunk series: Fix Released

Bug description:
I'm using version 5.0.11.

Steps to reproduce the issue:

I've tested this with Spanish and Belgian chart of accounts

1. Have a database with price_accuracy = 6
2. The currency is EURO with round = 0.01
3. Create a new invoice (client or provider, it doesn't matter)
4. Introduce a line with quantity = 254 price = 0.057035 and choose any non-zero tax from the drop-down.
For example: for Belgium Chart of Accounts I've set "x VAT" and for Spanish Chart of Accounts I've set "IVA Soportado 16% (Operaciones corrientes)". It doesn't matter which tax you choose, provided you choose one, so the invoice view will show the base used for tax calculation differs from the invoice base
5. Click on the button to calculate the taxes.

The value of base from invoice is different from base of tax.

Workaround and ideas:
* The subtotal of each invoce's line is rounded to currency precission (in this case 0.01, two decimals). When calculating the base for taxes the base isn't being rounded.
* Why the subtotal is recalculated to get the base for tax when we have a subtotal calculated field?