← Back to team overview

openerp-india team mailing list archive

[Bug 676993] Re: Pay Invoice wizard incorrectly adding withholding tax

 

Hello Michael,

"Pay Invoice" wizard is totally changed on v7, So would you please try
with latest version and let us know have you still faced this kind of
issue or not..

Thanks and waiting for your reply!

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

-- 
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):
  Incomplete

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