← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 775398] Re: Residual Amount Show Double Amount of Invoice Amount

 

Hi,

I believe that the problem is in account_move_line.py._amount_residual
The method should overlook "Tax Payable" as that is already in the total. The problem is that it is adding the tax again.

So to fix I have changed the line from:
if not move_line.account_id.type in ('payable', 'receivable'):
to:
if not move_line.account_id.type in ('payable', 'receivable') or move_line.account_id.name in ('Tax Payable'):
Therefore the method is now overlooking the Tax.

This however may not work for some charts of accounts.
Can someone suggest a better fix.  Maybe if we had a separate move_line.account_id.type such as tax_payable.

Thanks

Grahame Jordan

** Patch added: "residual_bypass_tax.patch"
   https://bugs.launchpad.net/openobject-addons/+bug/775398/+attachment/2167973/+files/residual_bypass_tax.patch

-- 
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/775398

Title:
  Residual Amount Show Double Amount of Invoice Amount

Status in OpenERP Modules (addons):
  Confirmed

Bug description:
  Hello,
  I have updated bzr version (server-3415, addons-4552) for openerp_6,
  I have purchase one machine and want to create invoice in openerp_6, but when i create invoice line with account of Fixed Assets with internal type (except regular) and than i go for valid invoice that time system give me Double amount of Invoice in Residual.
  I think this problem may arise with fixed coding on internal type, due to double amount in residual all accounting entries are going to wrong.

  so your support make openerp strong and flexible .

  Thank you,
  Sunil Jagyasi

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/775398/+subscriptions


References