cleaning up formatting diffs for MIFOSX-2129

This commit is contained in:
Vishwas Babu A J
2015-07-31 19:23:06 -07:00
parent 9aae2aad3d
commit 28d359653e
@@ -794,8 +794,8 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
List<Long> 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;
}