IDEMPIERE-4327 MPeriod.isOpen - should not perform update with cache PO (#105)
Do not perform update with MAcctSchema from cache
This commit is contained in:
parent
3339d1395d
commit
b50b533f43
|
@ -643,10 +643,14 @@ public class MPeriod extends X_C_Period
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// We are OK
|
// We are OK
|
||||||
if (isInPeriod(today))
|
if (isInPeriod(today) && as.getC_Period_ID() != getC_Period_ID())
|
||||||
{
|
{
|
||||||
as.setC_Period_ID(getC_Period_ID());
|
as = new MAcctSchema(Env.getCtx(), as.getC_AcctSchema_ID(), null);
|
||||||
as.saveEx();
|
if (as.getC_Period_ID() != getC_Period_ID())
|
||||||
|
{
|
||||||
|
as.setC_Period_ID(getC_Period_ID());
|
||||||
|
as.saveEx();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue