MIFOSX-73: track loan officer reassignment history only when loan is approved.

This commit is contained in:
Michal Dudzinski
2012-11-17 15:55:12 +01:00
parent 015400b08e
commit 7031ed40b4
@@ -1612,10 +1612,12 @@ public class Loan extends AbstractAuditableCustom<AppUser, Long> {
} }
this.loanofficer = newLoanOfficer; this.loanofficer = newLoanOfficer;
if (this.isNotSubmittedAndPendingApproval()){
final LoanOfficerAssignmentHistory loanOfficerAssignmentHistory = LoanOfficerAssignmentHistory.createNew(this, this.loanofficer, assignmentDate); final LoanOfficerAssignmentHistory loanOfficerAssignmentHistory = LoanOfficerAssignmentHistory.createNew(this, this.loanofficer, assignmentDate);
this.loanOfficerHistory.add(loanOfficerAssignmentHistory); this.loanOfficerHistory.add(loanOfficerAssignmentHistory);
} }
} }
}
private LoanOfficerAssignmentHistory findLatestIncompleteHistoryRecord() { private LoanOfficerAssignmentHistory findLatestIncompleteHistoryRecord() {