From 7b1ca03530217529f9c3303d2d3b65a21418468d Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 8 Dec 2014 15:54:39 -0500 Subject: [PATCH] IDEMPIERE-2347 Cannot void Material Receipt matched to Purchase Order --- org.adempiere.base/src/org/compiere/model/MMatchPO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MMatchPO.java b/org.adempiere.base/src/org/compiere/model/MMatchPO.java index b912ab2852..87458d8ad4 100644 --- a/org.adempiere.base/src/org/compiere/model/MMatchPO.java +++ b/org.adempiere.base/src/org/compiere/model/MMatchPO.java @@ -1162,7 +1162,7 @@ public class MMatchPO extends X_M_MatchPO public boolean reverse(Timestamp reversalDate) { - if (this.isPosted() && this.getReversal_ID() == 0) + if (this.isProcessed() && this.getReversal_ID() == 0) { MMatchPO reversal = new MMatchPO (getCtx(), 0, get_TrxName()); reversal.setC_InvoiceLine_ID(getC_InvoiceLine_ID());