Merge pull request #755 from pramodn02/MIFOSX-906
MIFOSX-906 - added creation of transaction id before creating Journal En...
This commit is contained in:
+9
@@ -316,6 +316,15 @@ public class SavingsAccountWritePlatformServiceJpaRepositoryImpl implements Savi
|
|||||||
final MathContext mc = new MathContext(10, RoundingMode.HALF_EVEN);
|
final MathContext mc = new MathContext(10, RoundingMode.HALF_EVEN);
|
||||||
|
|
||||||
account.postInterest(mc, today);
|
account.postInterest(mc, today);
|
||||||
|
|
||||||
|
// for generating transaction id's
|
||||||
|
List<SavingsAccountTransaction> transactions = account.getTransactions();
|
||||||
|
for(SavingsAccountTransaction accountTransaction:transactions){
|
||||||
|
if(accountTransaction.getId() == null){
|
||||||
|
this.savingsAccountTransactionRepository.save(accountTransaction);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.savingAccountRepository.save(account);
|
this.savingAccountRepository.save(account);
|
||||||
|
|
||||||
postJournalEntries(account, existingTransactionIds, existingReversedTransactionIds);
|
postJournalEntries(account, existingTransactionIds, existingReversedTransactionIds);
|
||||||
|
|||||||
Reference in New Issue
Block a user