cleaning up formatting diffs for MIFOSX-2129
This commit is contained in:
+4
-4
@@ -794,8 +794,8 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
|
|||||||
List<Long> transactionIds = new ArrayList<>();
|
List<Long> transactionIds = new ArrayList<>();
|
||||||
boolean isAccountTransfer = false;
|
boolean isAccountTransfer = false;
|
||||||
for (final SingleRepaymentCommand singleLoanRepaymentCommand : repaymentCommand) {
|
for (final SingleRepaymentCommand singleLoanRepaymentCommand : repaymentCommand) {
|
||||||
if(singleLoanRepaymentCommand != null){
|
if (singleLoanRepaymentCommand != null) {
|
||||||
final Loan loan = this.loanAssembler.assembleFrom(singleLoanRepaymentCommand.getLoanId());
|
final Loan loan = this.loanAssembler.assembleFrom(singleLoanRepaymentCommand.getLoanId());
|
||||||
final PaymentDetail paymentDetail = singleLoanRepaymentCommand.getPaymentDetail();
|
final PaymentDetail paymentDetail = singleLoanRepaymentCommand.getPaymentDetail();
|
||||||
if (paymentDetail != null && paymentDetail.getId() == null) {
|
if (paymentDetail != null && paymentDetail.getId() == null) {
|
||||||
this.paymentDetailWritePlatformService.persistPaymentDetail(paymentDetail);
|
this.paymentDetailWritePlatformService.persistPaymentDetail(paymentDetail);
|
||||||
@@ -805,8 +805,8 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
|
|||||||
bulkRepaymentCommand.getTransactionDate(), singleLoanRepaymentCommand.getTransactionAmount(), paymentDetail,
|
bulkRepaymentCommand.getTransactionDate(), singleLoanRepaymentCommand.getTransactionAmount(), paymentDetail,
|
||||||
bulkRepaymentCommand.getNote(), null, isRecoveryRepayment, isAccountTransfer);
|
bulkRepaymentCommand.getNote(), null, isRecoveryRepayment, isAccountTransfer);
|
||||||
transactionIds.add(loanTransaction.getId());
|
transactionIds.add(loanTransaction.getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
changes.put("loanTransactions", transactionIds);
|
changes.put("loanTransactions", transactionIds);
|
||||||
return changes;
|
return changes;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user