From 68d2d7432e8087bb04b2c1ec5a026ebf4cf47208 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 12 Oct 2021 03:36:49 +0200 Subject: [PATCH] IDEMPIERE-2624 Cant confirm 0 qty on Shipment Confirmation (#917) --- org.adempiere.base/src/org/compiere/model/MInOutLine.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org.adempiere.base/src/org/compiere/model/MInOutLine.java b/org.adempiere.base/src/org/compiere/model/MInOutLine.java index 8cfb971a4d..be0198bb21 100644 --- a/org.adempiere.base/src/org/compiere/model/MInOutLine.java +++ b/org.adempiere.base/src/org/compiere/model/MInOutLine.java @@ -527,6 +527,11 @@ public class MInOutLine extends X_M_InOutLine ) { // OK to save qty=0 when voiding + } else if ( MInOut.DOCACTION_Complete.equals(docAction) + && MInOut.DOCSTATUS_InProgress.equals(docStatus)) + { + // IDEMPIERE-2624 Cant confirm 0 qty on Movement Confirmation + // zero allowed in this case (action Complete and status In Progress) } else { log.saveError("SaveError", Msg.parseTranslation(getCtx(), "@Open@: @M_InOutConfirm_ID@")); return false;