From 5aa78bbf5e9177f623d2fe1c82ffccbfd667741f Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 14 Jun 2019 18:29:45 +0800 Subject: [PATCH] IDEMPIERE-3983 Matched PO posting status "Deferred" never transitions to "Posted" if no matching MR is assigned --- org.adempiere.base/src/org/compiere/model/MMatchPO.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.adempiere.base/src/org/compiere/model/MMatchPO.java b/org.adempiere.base/src/org/compiere/model/MMatchPO.java index 52ea5233db..038573c7f1 100644 --- a/org.adempiere.base/src/org/compiere/model/MMatchPO.java +++ b/org.adempiere.base/src/org/compiere/model/MMatchPO.java @@ -395,6 +395,8 @@ public class MMatchPO extends X_M_MatchPO } else continue; + if (iLine == null && mpo.isPosted()) + continue; } if ((iLine != null || mpo.getC_InvoiceLine_ID() > 0) && (sLine != null || mpo.getM_InOutLine_ID() > 0)) {