← Back to team overview

openerp-india team mailing list archive

[Bug 865854] Re: Payment to Sales/Purchase Refund Invoice is wrong

 

I just opened the same bug report (cf https://bugs.launchpad.net
/openobject-addons/+bug/920863) and someone noticed it was a duplicate
of this bug. So let's continue to discuss this bug here.

As explained on my bug report, the amount on the payment voucher must be
negative in order to have the accounting entries generated with debit
and credit  "the other way around". I wrote a patch (see enclosed) which
fixes the issue : the payment voucher generated from a customer/supplier
refund as a negative amount.

** Patch added: "fix-payment_voucher_on_refund.diff"
   https://bugs.launchpad.net/openobject-addons/+bug/865854/+attachment/2690471/+files/fix-payment_voucher_on_refund.diff

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

Title:
  Payment to Sales/Purchase Refund Invoice is wrong

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Once a Sales Refund and Purchase Refund invoice is validated, there
  will be a payment button down there just exactly the same as the
  normal invoices. However, I observed there is something wrong with the
  journal entries it generates. Take a Sales Refund as an example:

  1. After I validate the Sales Refund Invoice (SCNJ by default), the
  system CREDIT the Account Receivable while DEBIT the Product Sales,
  this step is correct.

  2. However, when I click the payment button in the refund invoice and
  process it normally, after the payment is settled, in the journal
  entry, it records as the normal Sales Invoice Payment which is CREDIT
  the Account Receivable while DEBIT the Bank Account. This is wrong, it
  should be the other way around.

  Could anybody explain it? May be I am wrong, but it is a very
  important function in the business.

  Thanks,
  King W.C. Wang

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