c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #04779
[Bug 676993] [NEW] Pay Invoice wizard incorrectly adding withholding tax
Public bug reported:
We are required to withhold the VAT payment of the supplier and pay it
directly to the government. So, I have defined a Withholding tax (equal
to VAT but negative) that gets booked to a Payable type account.
In the Pay Invoice wizard (launched from the Supplier Invoice) when I
make a full payment and click the "Fuil Payment" button it brings up a
form for writing off the difference between the payment amount and what
it thinks is the correct amount. If instead I click on the "Partial
Payment" button everything functions correctly and the transaction is
posted to the financial accounts correctly.
After some debugging I found that the problem is that when it calculates
the full payment it includes lines matching the account on the invoice
*and* also any amounts booked to payable or receivable accounts.
Apparently this behaviour is due to a fix committed for bug #496889. I
have attached a patch that additionally filters by whether the move line
is a tax.
I am using OpenERP 5.0.14.
** Affects: openobject-addons
Importance: Undecided
Status: New
--
Pay Invoice wizard incorrectly adding withholding tax
https://bugs.launchpad.net/bugs/676993
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: New
Bug description:
We are required to withhold the VAT payment of the supplier and pay it directly to the government. So, I have defined a Withholding tax (equal to VAT but negative) that gets booked to a Payable type account.
In the Pay Invoice wizard (launched from the Supplier Invoice) when I make a full payment and click the "Fuil Payment" button it brings up a form for writing off the difference between the payment amount and what it thinks is the correct amount. If instead I click on the "Partial Payment" button everything functions correctly and the transaction is posted to the financial accounts correctly.
After some debugging I found that the problem is that when it calculates the full payment it includes lines matching the account on the invoice *and* also any amounts booked to payable or receivable accounts. Apparently this behaviour is due to a fix committed for bug #496889. I have attached a patch that additionally filters by whether the move line is a tax.
I am using OpenERP 5.0.14.
Follow ups
References