From 6b0428fc04d69691b309d47a25f89d7f65509a50 Mon Sep 17 00:00:00 2001 From: anozimada Date: Thu, 23 Nov 2017 15:00:59 +0100 Subject: [PATCH] IDEMPIERE-3392 FillMandatory QtyInternalUse blocking doc action void in Internal Use --- org.adempiere.base/src/org/compiere/model/MInventoryLine.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MInventoryLine.java b/org.adempiere.base/src/org/compiere/model/MInventoryLine.java index 1af380e54b..fe3ec77e96 100644 --- a/org.adempiere.base/src/org/compiere/model/MInventoryLine.java +++ b/org.adempiere.base/src/org/compiere/model/MInventoryLine.java @@ -20,6 +20,7 @@ import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; +import org.compiere.process.DocAction; import org.compiere.util.DB; import org.compiere.util.Env; import org.compiere.util.Msg; @@ -329,7 +330,7 @@ public class MInventoryLine extends X_M_InventoryLine log.saveError("Quantity", Msg.getElement(getCtx(), COLUMNNAME_QtyCount)); return false; } - if (getQtyInternalUse().signum() == 0) { + if (getQtyInternalUse().signum() == 0 && !getParent().getDocAction().equals(DocAction.ACTION_Void)) { log.saveError("FillMandatory", Msg.getElement(getCtx(), COLUMNNAME_QtyInternalUse)); return false; }