From 114dcb21c4bd05d08dd2c39d78cf986aa1a33d70 Mon Sep 17 00:00:00 2001 From: Chandrika Date: Wed, 17 Dec 2014 16:55:21 -0500 Subject: [PATCH] MIFOSX-1766 Table entry is now being made for savingsOfficer in assignment history table after Approval --- .../portfolio/savings/domain/SavingsAccount.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/domain/SavingsAccount.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/domain/SavingsAccount.java index b7d2af190..d54033ac5 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/domain/SavingsAccount.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/domain/SavingsAccount.java @@ -1535,7 +1535,11 @@ public class SavingsAccount extends AbstractPersistable { // this.fieldOfficer, approvedOn); // this.loanOfficerHistory.add(loanOfficerAssignmentHistory); // } - + if (this.savingsOfficer != null) { + final SavingsOfficerAssignmentHistory savingsOfficerAssignmentHistory = SavingsOfficerAssignmentHistory.createNew(this, + this.savingsOfficer, approvedOn); + this.savingsOfficerHistory.add(savingsOfficerAssignmentHistory); + } return actualChanges; }