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,8 +1612,10 @@ public class Loan extends AbstractAuditableCustom<AppUser, Long> {
}
this.loanofficer = newLoanOfficer;
final LoanOfficerAssignmentHistory loanOfficerAssignmentHistory = LoanOfficerAssignmentHistory.createNew(this, this.loanofficer, assignmentDate);
this.loanOfficerHistory.add(loanOfficerAssignmentHistory);
if (this.isNotSubmittedAndPendingApproval()){
final LoanOfficerAssignmentHistory loanOfficerAssignmentHistory = LoanOfficerAssignmentHistory.createNew(this, this.loanofficer, assignmentDate);
this.loanOfficerHistory.add(loanOfficerAssignmentHistory);
}
}
}