c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #08206
[Bug 676993] Re: Pay Invoice wizard incorrectly adding withholding tax
** Changed in: openobject-addons
Importance: Undecided => Low
** Changed in: openobject-addons
Assignee: (unassigned) => Jay (OpenERP) (jvo-openerp)
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/676993
Title:
Pay Invoice wizard incorrectly adding withholding tax
Status in OpenObject Addons Modules:
Triaged
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.
References