Error on total open balance when void POS Order with Cash Payment Rule

Description

When the order is voided, the system create reversion of the invoice and payment and reverse allocation of original payment, and in that point is when we get wrong open balace with the amount of payment reversed.

Step to recreate: Create an Pos order with Payment Rule: CASH, Complete order, Void Order, Execute Validate Business Partner

More details here https://groups.google.com/forum/#!searchin/idempiere/pos/idempiere/fUeoFfKusPA/PRTixSjgM4sJ

Environment

None

Attachments

1

Activity

Show:

Eduardo Gil August 19, 2015 at 9:04 PM

Tested and works fine

Eduardo Gil August 19, 2015 at 7:26 PM

I did some test and still have the same behavior.

1.- It create a payment for the reversal document
2.- It does not reverse the original payment created automatically when completeIt

Carlos Ruiz August 19, 2015 at 6:41 PM

, I committed a fix - can you please help with some tests?

Eduardo Gil August 18, 2015 at 11:14 PM
Edited

Hi . Attach i put the a patch for your evaluation to solve the problem when reverse orders with payment rule cash. There was really 2 problems all of them was in MInvoice:

1. The system did not controled that the payment was created automatically and void the allocation related to the invoice and payment but not reverse the payment.

2. When the reversal document is created apply the same rule if paymentRule was cash create a payment and also create an allocation with the original document and the reversal document, allocating twice the reversal document.

Fixed

Details

Assignee

Reporter

Components

Priority

Created August 12, 2015 at 3:10 PM
Updated October 1, 2015 at 5:02 PM
Resolved August 19, 2015 at 6:41 PM