IDEMPIERE-3231 Production document affecting storage for non-stocked products

This commit is contained in:
Carlos Ruiz 2016-10-26 22:59:09 +02:00
parent 81e3e9afbf
commit 6600f1a34f
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public class MProductionLine extends X_M_ProductionLine {
MProduct prod = new MProduct(getCtx(), getM_Product_ID(), get_TrxName()); MProduct prod = new MProduct(getCtx(), getM_Product_ID(), get_TrxName());
if (log.isLoggable(Level.FINE))log.log(Level.FINE,"Loaded Product " + prod.toString()); if (log.isLoggable(Level.FINE))log.log(Level.FINE,"Loaded Product " + prod.toString());
if ( prod.getProductType().compareTo(MProduct.PRODUCTTYPE_Item ) != 0 ) { if ( !prod.isStocked() || prod.getProductType().compareTo(MProduct.PRODUCTTYPE_Item ) != 0 ) {
// no need to do any movements // no need to do any movements
if (log.isLoggable(Level.FINE))log.log(Level.FINE, "Production Line " + getLine() + " does not require stock movement"); if (log.isLoggable(Level.FINE))log.log(Level.FINE, "Production Line " + getLine() + " does not require stock movement");
return ""; return "";