IDEMPIERE-2347 Cannot void Material Receipt matched to Purchase Order

This commit is contained in:
Carlos Ruiz 2014-12-08 15:54:39 -05:00
parent f71dab3174
commit 7b1ca03530
1 changed files with 1 additions and 1 deletions

View File

@ -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());