IDEMPIERE-4095 Inconsistency between saving a sales order line with and without ASI

This commit is contained in:
Carlos Ruiz 2019-11-13 11:58:46 +01:00
parent 36ca02f16d
commit cac5985b2a
1 changed files with 2 additions and 0 deletions

View File

@ -859,6 +859,7 @@ public class MOrderLine extends X_C_OrderLine
if (newRecord || is_ValueChanged("QtyOrdered"))
setQtyOrdered(getQtyOrdered());
/* IDEMPIERE-4095 - it is a valid use case to reserve a serialized item on sales (same as reserving non existing inventory)
// Qty on instance ASI for SO
if (m_IsSOTrx
&& getM_AttributeSetInstance_ID() != 0
@ -898,6 +899,7 @@ public class MOrderLine extends X_C_OrderLine
}
} // stocked
} // SO instance
-- commented out because of IDEMPIERE-4095 */
// FreightAmt Not used
if (Env.ZERO.compareTo(getFreightAmt()) != 0)