From 0d239fbacf88d88b38022f37013fb742fc075232 Mon Sep 17 00:00:00 2001 From: Deepak Pansheriya Date: Wed, 8 Jan 2020 17:54:56 +0530 Subject: [PATCH] IDEMPIERE-3388: Manual posting for reversed invoice throwing posting error (#8) --- org.adempiere.base/src/org/compiere/model/MMatchInv.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.adempiere.base/src/org/compiere/model/MMatchInv.java b/org.adempiere.base/src/org/compiere/model/MMatchInv.java index d1ee2ed0c6..f73101924b 100644 --- a/org.adempiere.base/src/org/compiere/model/MMatchInv.java +++ b/org.adempiere.base/src/org/compiere/model/MMatchInv.java @@ -129,6 +129,7 @@ public class MMatchInv extends X_M_MatchInv +" WHERE M_MatchInv.C_InvoiceLine_ID=il.C_InvoiceLine_ID AND il.C_Invoice_ID=?)"; List list = new Query(ctx, I_M_MatchInv.Table_Name, whereClause, trxName) .setParameters(C_Invoice_ID) + .setOrderBy(COLUMNNAME_ProcessedOn) .list(); return list.toArray (new MMatchInv[list.size()]); } // getInvoice