openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #23254
[Bug 676993] Re: Pay Invoice wizard incorrectly adding withholding tax
** Changed in: openobject-addons
Assignee: Jay Vora (Serpent Consulting Services) (jayvora) => (unassigned)
** Changed in: openobject-addons
Status: In Progress => New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/676993
Title:
Pay Invoice wizard incorrectly adding withholding tax
Status in OpenERP 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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/676993/+subscriptions