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
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.
, I committed a fix - can you please help with some tests?
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
Tested and works fine