IDEMPIERE-5054 Order Line: Shouldn't allow change of ASI when Qty Reserved > 0 (#1006)

This commit is contained in:
hengsin 2021-11-29 23:11:54 +08:00 committed by GitHub
parent 05447b38ce
commit ce83914f32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -790,7 +790,8 @@ public class MOrderLine extends X_C_OrderLine
// R/O Check - Product/Warehouse Change
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())
return false;