Merge pull request #1519 from sachinkulkarni12/MIFOSX-2289

MIFOSX-2289:fix for Journal Entry not created for new transaction when recalculate interest batch job is ran
This commit is contained in:
pramod
2015-10-12 16:00:46 +05:30
@@ -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());
}
}