IDEMPIERE-2518 Cost Adjustment window - Allow Zero Cost entry for non-stocked product / based on patch from Lee Soo Fang

This commit is contained in:
Carlos Ruiz 2016-05-05 21:22:44 -07:00
parent 414851f465
commit 61f855d308
1 changed files with 0 additions and 5 deletions

View File

@ -353,11 +353,6 @@ public class MInventoryLine extends X_M_InventoryLine
return false; return false;
} }
} else if (MDocType.DOCSUBTYPEINV_CostAdjustment.equals(docSubTypeInv)) { } else if (MDocType.DOCSUBTYPEINV_CostAdjustment.equals(docSubTypeInv)) {
if (getNewCostPrice().signum() == 0) {
log.saveError("FillMandatory", Msg.getElement(getCtx(), COLUMNNAME_NewCostPrice));
return false;
}
int M_ASI_ID = getM_AttributeSetInstance_ID(); int M_ASI_ID = getM_AttributeSetInstance_ID();
MProduct product = new MProduct(getCtx(), getM_Product_ID(), get_TrxName()); MProduct product = new MProduct(getCtx(), getM_Product_ID(), get_TrxName());
MClient client = MClient.get(getCtx()); MClient client = MClient.get(getCtx());