Merge branch 'FINERACT-16' into develop

This commit is contained in:
Nazeer Hussain Shaik
2017-01-20 13:40:57 +05:30
@@ -1030,6 +1030,12 @@ public class LoanApplicationWritePlatformServiceJpaRepositoryImpl implements Loa
final List<Note> relatedNotes = this.noteRepository.findByLoanId(loan.getId());
this.noteRepository.deleteInBatch(relatedNotes);
final AccountAssociations accountAssociations = this.accountAssociationsRepository.findByLoanIdAndType(loanId,
AccountAssociationType.LINKED_ACCOUNT_ASSOCIATION.getValue());
if (accountAssociations != null) {
this.accountAssociationsRepository.delete(accountAssociations);
}
this.loanRepositoryWrapper.delete(loanId);
return new CommandProcessingResultBuilder() //