Invoice tax : Onchanges on tax amount and base should consider the tax-code and base-code signs respectively
Bug #524278 reported by
Nicolas Bessi - Camptocamp
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) | Status tracked in Trunk | |||||
5.0 |
In Progress
|
Low
|
JMA(Open ERP) | |||
Trunk |
Fix Released
|
High
|
Jay Vora (Serpent Consulting Services) |
Bug Description
When you manually edit the amount of an invoice tax line on an purchase invoice (it will probably do the same on customer), the tax amount is recomputed, the amount is right but the sign is wrong if the tax sign is negative. It appears that the tax code sign in ignored.
That error report itself in the accounting line and spoiled the Vat report.
Maybe we should use a rule based on debit or credit and account type instead of having a tax code sign in order to avoid this kind of problems.
Regards
Nicolas
Changed in account-banking: | |
status: | New → Confirmed |
affects: | account-banking → openobject-addons |
Changed in openobject-addons: | |
assignee: | nobody → Jay (Open ERP) (jvo-openerp) |
tags: | added: maintenance |
To post a comment you must log in.
Hi,
This bug is still present in the current 5.0.7 version !
This is important, as the VAT declaration is erroneous without a fix or a manual intervention on the base code amount.
OERPScenario can now detect this bug with --tag=@bug524278.
Here is the complete test case :
Given I have recorded on the 10 sept 2009 a supplier invoice (in_invoice) of 1000.0 CHF without tax called MySupplierInvoi ceTax
And I add a line with tax called MyTaxLine on the last created invoice of 12156.0 with the tax called 'Buy 19.6%'
When I compute the taxes on invoice
Then I should have a invoice tax line with a base amount of 12156.0
And a tax amount of 2382.58
When I modify the tax amount to 2382.55
Then I should have a invoice tax line with a base amount of 12156.0
And a tax amount of 2382.55
And a tax code amount of -1588.37
!!! Fails here => get 1588.37 instead of -1588.37
And a tax base amount of -8104.0
Given I correct the total amount of the invoice according to changes ceTax open
When I press the validate button
Then I should see the invoice MySupplierInvoi
And I should have a linked account move with 4 lines and a posted status