IDEMPIERE-2083 can't complete a internal inventory when date account > date account all receipt

This commit is contained in:
hieplq 2014-07-23 11:12:33 +07:00
parent afb8d58ef6
commit d67c4db60a
2 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ public class MInOutLineMA extends X_M_InOutLineMA
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)){
//TODO Require testing for all scenario //TODO Require testing for all scenario
I_M_InOutLine line = getM_InOutLine(); I_M_InOutLine line = getM_InOutLine();

View File

@ -243,7 +243,7 @@ public class MMovementLineMA extends X_M_MovementLineMA
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_MovementLine line = getM_MovementLine(); I_M_MovementLine line = getM_MovementLine();
Timestamp dateMPolicy = null; Timestamp dateMPolicy = null;