IDEMPIERE-5054 Order Line: Shouldn't allow change of ASI when Qty Reserved > 0 (#1006)
This commit is contained in:
parent
05447b38ce
commit
ce83914f32
|
@ -790,7 +790,8 @@ public class MOrderLine extends X_C_OrderLine
|
||||||
|
|
||||||
// R/O Check - Product/Warehouse Change
|
// R/O Check - Product/Warehouse Change
|
||||||
if (!newRecord
|
if (!newRecord
|
||||||
&& (is_ValueChanged("M_Product_ID") || is_ValueChanged("M_Warehouse_ID")))
|
&& (is_ValueChanged("M_Product_ID") || is_ValueChanged("M_Warehouse_ID") ||
|
||||||
|
(!getParent().isProcessed() && is_ValueChanged(COLUMNNAME_M_AttributeSetInstance_ID))))
|
||||||
{
|
{
|
||||||
if (!canChangeWarehouse())
|
if (!canChangeWarehouse())
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue