IDEMPIERE-2083 can't complete a internal inventory when date account > date account all receipt / IDEMPIERE-1770 / thanks to Hiep (hieplq)

This commit is contained in:
Carlos Ruiz 2014-07-22 16:53:25 -05:00
parent 6953754984
commit 33120387c2
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ public class MInventoryLineMA extends X_M_InventoryLineMA
protected boolean beforeSave (boolean newRecord) protected boolean beforeSave (boolean newRecord)
{ {
//Set DateMaterialPolicy //Set DateMaterialPolicy
if(is_ValueChanged(COLUMNNAME_M_AttributeSetInstance_ID)){ if(!newRecord && is_ValueChanged(COLUMNNAME_M_AttributeSetInstance_ID)){
I_M_InventoryLine line = getM_InventoryLine(); I_M_InventoryLine line = getM_InventoryLine();
Timestamp dateMPolicy = null; Timestamp dateMPolicy = null;