MIFOSX-1639 Adding field createStandingInstructionAtDisbursement in Modify Loan
This commit is contained in:
+7
@@ -1185,6 +1185,13 @@ public class Loan extends AbstractPersistable<Long> {
|
|||||||
this.accountNumber = StringUtils.defaultIfEmpty(newValue, null);
|
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";
|
final String externalIdParamName = "externalId";
|
||||||
if (command.isChangeInStringParameterNamed(externalIdParamName, this.externalId)) {
|
if (command.isChangeInStringParameterNamed(externalIdParamName, this.externalId)) {
|
||||||
final String newValue = command.stringValueOfParameterNamed(externalIdParamName);
|
final String newValue = command.stringValueOfParameterNamed(externalIdParamName);
|
||||||
|
|||||||
+1
-1
@@ -41,7 +41,7 @@ public final class CalculateLoanScheduleQueryFromApiJsonHelper {
|
|||||||
"graceOnInterestCharged", "interestChargedFromDate", "submittedOnDate", "submittedOnNote", "locale", "dateFormat", "charges",
|
"graceOnInterestCharged", "interestChargedFromDate", "submittedOnDate", "submittedOnNote", "locale", "dateFormat", "charges",
|
||||||
"collateral", "syncDisbursementWithMeeting", "linkAccountId", LoanApiConstants.disbursementDataParameterName,
|
"collateral", "syncDisbursementWithMeeting", "linkAccountId", LoanApiConstants.disbursementDataParameterName,
|
||||||
LoanApiConstants.emiAmountParameterName, LoanApiConstants.maxOutstandingBalanceParameterName,
|
LoanApiConstants.emiAmountParameterName, LoanApiConstants.maxOutstandingBalanceParameterName,
|
||||||
LoanProductConstants.graceOnArrearsAgeingParameterName, LoanProductConstants.recalculationRestFrequencyDateParamName));
|
LoanProductConstants.graceOnArrearsAgeingParameterName, LoanProductConstants.recalculationRestFrequencyDateParamName,"createStandingInstructionAtDisbursement"));
|
||||||
|
|
||||||
private final FromJsonHelper fromApiJsonHelper;
|
private final FromJsonHelper fromApiJsonHelper;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user