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,11 +643,15 @@ public class MPeriod extends X_C_Period
|
|||
return false;
|
||||
}
|
||||
// We are OK
|
||||
if (isInPeriod(today))
|
||||
if (isInPeriod(today) && as.getC_Period_ID() != getC_Period_ID())
|
||||
{
|
||||
as = new MAcctSchema(Env.getCtx(), as.getC_AcctSchema_ID(), null);
|
||||
if (as.getC_Period_ID() != getC_Period_ID())
|
||||
{
|
||||
as.setC_Period_ID(getC_Period_ID());
|
||||
as.saveEx();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue