Merge pull request #1147 from chandrikamohith/MIFOSX-1639

MIFOSX-1639 Adding field createStandingInstructionAtDisbursement in  Mod...
This commit is contained in:
Vishwas Babu A J
2014-12-08 01:05:28 -08:00
2 changed files with 8 additions and 1 deletions
@@ -1191,6 +1191,13 @@ public class Loan extends AbstractPersistable<Long> {
this.accountNumber = StringUtils.defaultIfEmpty(newValue, null);
}
final String createSiAtDisbursementParameterName = "createStandingInstructionAtDisbursement";
if (command.isChangeInBooleanParameterNamed(createSiAtDisbursementParameterName, shouldCreateStandingInstructionAtDisbursement())) {
final Boolean valueAsInput = command.booleanObjectValueOfParameterNamed(createSiAtDisbursementParameterName);
actualChanges.put(createSiAtDisbursementParameterName, valueAsInput);
this.createStandingInstructionAtDisbursement = valueAsInput;
}
final String externalIdParamName = "externalId";
if (command.isChangeInStringParameterNamed(externalIdParamName, this.externalId)) {
final String newValue = command.stringValueOfParameterNamed(externalIdParamName);
@@ -41,7 +41,7 @@ public final class CalculateLoanScheduleQueryFromApiJsonHelper {
"graceOnInterestCharged", "interestChargedFromDate", "submittedOnDate", "submittedOnNote", "locale", "dateFormat", "charges",
"collateral", "syncDisbursementWithMeeting", "linkAccountId", LoanApiConstants.disbursementDataParameterName,
LoanApiConstants.emiAmountParameterName, LoanApiConstants.maxOutstandingBalanceParameterName,
LoanProductConstants.graceOnArrearsAgeingParameterName, LoanProductConstants.recalculationRestFrequencyDateParamName));
LoanProductConstants.graceOnArrearsAgeingParameterName, LoanProductConstants.recalculationRestFrequencyDateParamName,"createStandingInstructionAtDisbursement"));
private final FromJsonHelper fromApiJsonHelper;