** Changed in: openobject-addons
       Status: New => Triaged

-- 
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: 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.



_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to