diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java index f024187e1..f96f469fb 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java @@ -794,8 +794,8 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf List transactionIds = new ArrayList<>(); boolean isAccountTransfer = false; for (final SingleRepaymentCommand singleLoanRepaymentCommand : repaymentCommand) { - if(singleLoanRepaymentCommand != null){ - final Loan loan = this.loanAssembler.assembleFrom(singleLoanRepaymentCommand.getLoanId()); + if (singleLoanRepaymentCommand != null) { + final Loan loan = this.loanAssembler.assembleFrom(singleLoanRepaymentCommand.getLoanId()); final PaymentDetail paymentDetail = singleLoanRepaymentCommand.getPaymentDetail(); if (paymentDetail != null && paymentDetail.getId() == null) { this.paymentDetailWritePlatformService.persistPaymentDetail(paymentDetail); @@ -805,8 +805,8 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf bulkRepaymentCommand.getTransactionDate(), singleLoanRepaymentCommand.getTransactionAmount(), paymentDetail, bulkRepaymentCommand.getNote(), null, isRecoveryRepayment, isAccountTransfer); transactionIds.add(loanTransaction.getId()); - } - } + } + } changes.put("loanTransactions", transactionIds); return changes; }