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 MySupplierInvoiceTax
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
When I press the validate button
Then I should see the invoice MySupplierInvoiceTax open
And I should have a linked account move with 4 lines and a posted status
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