fix(chequebook,current-account): current-account transaction fixes for cheque-book charge
- CurrentAccountTransactionsApiResource.retrieveOne() was calling the savings read-service to fetch a single transaction, which always queries m_savings_account_transaction and can never find a current-account row — crashed with EmptyResultDataAccessException. Added a dedicated CurrentAccountReadPlatformService.retrieveOneTransaction() backed by m_current_account_transaction instead. - CurrentAccountReadPlatformServiceImpl.buildTransactionType() (and the search-transactions endpoint) had no cases for hold (8) / release (9) transaction types, so they displayed as "Deposit"/"Other" instead of "Amount on hold"/"Release Amount". - ChequeBookIssuanceChargeService.deductFromCurrent() never set runningBalanceDerived on the charge-deduction transaction, leaving the Balance column blank for that row in the transactions list. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
fde670e644
commit
5ed95c27e8
+2
@@ -26,6 +26,8 @@ public interface CurrentAccountReadPlatformService {
|
||||
|
||||
Map<String, Object> retrieveOne(Long accountId);
|
||||
|
||||
Map<String, Object> retrieveOneTransaction(Long accountId, Long transactionId);
|
||||
|
||||
List<Map<String, Object>> retrieveAll();
|
||||
|
||||
List<Map<String, Object>> retrieveAll(Integer offset, Integer limit, String accountNo, String clientName);
|
||||
|
||||
Reference in New Issue
Block a user