Small performance improvement on Payment completion - don't rewrite a valid value (avoid save/check cycle)
This commit is contained in:
parent
20fa496489
commit
2f9d6e74e6
|
@ -411,8 +411,10 @@ public class MPeriod extends X_C_Period
|
|||
// We are OK
|
||||
if (isInPeriod(today))
|
||||
{
|
||||
as.setC_Period_ID(getC_Period_ID());
|
||||
as.save();
|
||||
if (as.getC_Period_ID() != getC_Period_ID()) {
|
||||
as.setC_Period_ID(getC_Period_ID());
|
||||
as.save();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue