changing visibility of lockinPeriodFrequencyTypeValue variable in DepositAccountAssembler
This commit is contained in:
+7
-5
@@ -239,8 +239,9 @@ public class DepositAccountAssembler {
|
||||
}
|
||||
|
||||
SavingsPeriodFrequencyType lockinPeriodFrequencyType = null;
|
||||
Integer lockinPeriodFrequencyTypeValue = null;
|
||||
|
||||
if (command.parameterExists(lockinPeriodFrequencyTypeParamName)) {
|
||||
Integer lockinPeriodFrequencyTypeValue = null;
|
||||
lockinPeriodFrequencyTypeValue = command.integerValueOfParameterNamed(lockinPeriodFrequencyTypeParamName);
|
||||
if (lockinPeriodFrequencyTypeValue != null) {
|
||||
lockinPeriodFrequencyType = SavingsPeriodFrequencyType.fromInt(lockinPeriodFrequencyTypeValue);
|
||||
@@ -297,8 +298,8 @@ public class DepositAccountAssembler {
|
||||
RecurringDepositAccount rdAccount = RecurringDepositAccount.createNewApplicationForSubmittal(client, group, product,
|
||||
fieldOfficer, accountNo, externalId, accountType, submittedOnDate, submittedBy, interestRate,
|
||||
interestCompoundingPeriodType, interestPostingPeriodType, interestCalculationType, interestCalculationDaysInYearType,
|
||||
minRequiredOpeningBalance, lockinPeriodFrequency, lockinPeriodFrequencyType,
|
||||
iswithdrawalFeeApplicableForTransfer, charges, accountTermAndPreClosure, accountRecurringDetail, accountChart);
|
||||
minRequiredOpeningBalance, lockinPeriodFrequency, lockinPeriodFrequencyType, iswithdrawalFeeApplicableForTransfer,
|
||||
charges, accountTermAndPreClosure, accountRecurringDetail, accountChart);
|
||||
|
||||
accountTermAndPreClosure.updateAccountReference(rdAccount);
|
||||
accountRecurringDetail.updateAccountReference(rdAccount);
|
||||
@@ -401,7 +402,7 @@ public class DepositAccountAssembler {
|
||||
return depositAccountRecurringDetail;
|
||||
}
|
||||
|
||||
public Collection<SavingsAccountTransactionDTO> assembleBulkMandatorySavingsAccountTransactionDTOs(final JsonCommand command){
|
||||
public Collection<SavingsAccountTransactionDTO> assembleBulkMandatorySavingsAccountTransactionDTOs(final JsonCommand command) {
|
||||
final String json = command.json();
|
||||
if (StringUtils.isBlank(json)) { throw new InvalidJsonException(); }
|
||||
final JsonElement element = this.fromApiJsonHelper.parse(json);
|
||||
@@ -423,7 +424,8 @@ public class DepositAccountAssembler {
|
||||
final Long savingsId = this.fromApiJsonHelper.extractLongNamed(savingsIdParamName, savingsTransactionElement);
|
||||
final BigDecimal dueAmount = this.fromApiJsonHelper.extractBigDecimalNamed(transactionAmountParamName,
|
||||
savingsTransactionElement, locale);
|
||||
final SavingsAccountTransactionDTO savingsAccountTransactionDTO = new SavingsAccountTransactionDTO(formatter, transactionDate, dueAmount, paymentDetail, new Date(), savingsId);
|
||||
final SavingsAccountTransactionDTO savingsAccountTransactionDTO = new SavingsAccountTransactionDTO(formatter,
|
||||
transactionDate, dueAmount, paymentDetail, new Date(), savingsId);
|
||||
savingsAccountTransactions.add(savingsAccountTransactionDTO);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user