MIFOSX-2289:fix for Journal Entry not created for new transaction when recalculate interest batch job is ran

This commit is contained in:
sachinkulkarni12
2015-10-12 15:10:26 +05:30
parent 75178272b9
commit 7710058690
@@ -2903,6 +2903,9 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
if (changedTransactionDetail != null) {
for (final Map.Entry<Long, LoanTransaction> mapEntry : changedTransactionDetail.getNewTransactionMappings().entrySet()) {
this.loanTransactionRepository.save(mapEntry.getValue());
// update loan with references to the newly created
// transactions
loan.getLoanTransactions().add(mapEntry.getValue());
this.accountTransfersWritePlatformService.updateLoanTransaction(mapEntry.getKey(), mapEntry.getValue());
}
}