commit for FINERACT-57 (Set closure properties of reactivated closed client entity to null)

This commit is contained in:
Emmanuel Nnaa
2016-07-21 16:01:19 +02:00
parent 5ac0da03d3
commit af1ef23db4
@@ -409,6 +409,11 @@ public final class Client extends AbstractPersistable<Long> {
this.activatedBy = currentUser;
this.officeJoiningDate = this.activationDate;
this.status = ClientStatus.ACTIVE.getValue();
// in case a closed client is being re open
this.closureDate = null;
this.closureReason = null;
this.closedBy = null;
validate();
}