← Back to team overview

openerp-india team mailing list archive

[Bug 920863] Re: Bad default parameter on payment voucher on refund

 

*** This bug is a duplicate of bug 865854 ***
    https://bugs.launchpad.net/bugs/865854

I think in_refund can't be with minus, because you get money from
supplier, its not same like with customer refund. After all then payment
for supplier invoice must be with minus, but seems here need more
changes.

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

Title:
  Bad default parameter on payment voucher on refund

Status in OpenERP Addons (modules):
  New

Bug description:
  Here is the scenario of the bug on OpenERP trunk :
  1. A supplier issue a refund.
  -> Create a new supplier refund and approve it. It creates the following accounting entry :
  Third party account (401 in France) : debit
  Expense account (607 in France) : credit
  2. The supplier makes a bank transfer to you to reimburse the refund.
  On the supplier refund, click on the "Pay invoice" button. Keep the default parameters, select a "Payment method" and click on  validate. In the "Journal items" tab, you will see the following accounting entry :
  Third party account (401) : debit
  Bank account (512) : credit
  This is wrong ; for a reimbursement from a supplier, it should be :
  Third party account (401) : credit
  Bank account (512) : debit

  The cause of this issue is that the "Amount" field on the payment
  voucher should be negative. If you manually set the amount as
  negative, the accounting entry becomes correct.

  The issue is the same for a customer refund.

  The enclosed patch fixes this issue. This patch has been tested on
  addons-trunk.

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


References