diff --git a/org.adempiere.base/src/org/adempiere/process/MatchInvReverse.java b/org.adempiere.base/src/org/adempiere/process/MatchInvReverse.java index 4f37c0882a..6f25c9cf7d 100644 --- a/org.adempiere.base/src/org/adempiere/process/MatchInvReverse.java +++ b/org.adempiere.base/src/org/adempiere/process/MatchInvReverse.java @@ -48,7 +48,7 @@ public class MatchInvReverse extends SvrProcess { if (inv.get_ID() != p_M_MatchInv_ID) throw new AdempiereException("@NotFound@ @M_MatchInv_ID@ " + p_M_MatchInv_ID); - if (inv.isPosted()) + if (inv.isProcessed()) { Timestamp reversalDate = Env.getContextAsDate(getCtx(), "#Date"); if (reversalDate == null) { diff --git a/org.adempiere.base/src/org/adempiere/process/MatchPOReverse.java b/org.adempiere.base/src/org/adempiere/process/MatchPOReverse.java index 338207de28..e46b4c028f 100644 --- a/org.adempiere.base/src/org/adempiere/process/MatchPOReverse.java +++ b/org.adempiere.base/src/org/adempiere/process/MatchPOReverse.java @@ -46,7 +46,7 @@ public class MatchPOReverse extends SvrProcess { MMatchPO po = new MMatchPO (getCtx(), p_M_MatchPO_ID, get_TrxName()); if (po.get_ID() != p_M_MatchPO_ID) throw new AdempiereException("@NotFound@ @M_MatchPO_ID@ " + p_M_MatchPO_ID); - if (po.isPosted()) + if (po.isProcessed()) { Timestamp reversalDate = Env.getContextAsDate(getCtx(), "#Date"); if (reversalDate == null) { diff --git a/org.adempiere.base/src/org/compiere/model/MMatchInv.java b/org.adempiere.base/src/org/compiere/model/MMatchInv.java index 476b53a84d..12c272e775 100644 --- a/org.adempiere.base/src/org/compiere/model/MMatchInv.java +++ b/org.adempiere.base/src/org/compiere/model/MMatchInv.java @@ -366,7 +366,7 @@ public class MMatchInv extends X_M_MatchInv */ public boolean reverse(Timestamp reversalDate) { - if (this.isPosted() && this.getReversal_ID() == 0) + if (this.isProcessed() && this.getReversal_ID() == 0) { MMatchInv reversal = new MMatchInv (getCtx(), 0, get_TrxName()); PO.copyValues(this, reversal);