IDEMPIERE-3392 FillMandatory QtyInternalUse blocking doc action void in Internal Use

This commit is contained in:
anozimada 2017-11-23 15:00:59 +01:00
parent c1390e3097
commit 6b0428fc04
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ import java.math.BigDecimal;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.util.Properties; import java.util.Properties;
import org.compiere.process.DocAction;
import org.compiere.util.DB; import org.compiere.util.DB;
import org.compiere.util.Env; import org.compiere.util.Env;
import org.compiere.util.Msg; import org.compiere.util.Msg;
@ -329,7 +330,7 @@ public class MInventoryLine extends X_M_InventoryLine
log.saveError("Quantity", Msg.getElement(getCtx(), COLUMNNAME_QtyCount)); log.saveError("Quantity", Msg.getElement(getCtx(), COLUMNNAME_QtyCount));
return false; return false;
} }
if (getQtyInternalUse().signum() == 0) { if (getQtyInternalUse().signum() == 0 && !getParent().getDocAction().equals(DocAction.ACTION_Void)) {
log.saveError("FillMandatory", Msg.getElement(getCtx(), COLUMNNAME_QtyInternalUse)); log.saveError("FillMandatory", Msg.getElement(getCtx(), COLUMNNAME_QtyInternalUse));
return false; return false;
} }