feat: fix standing instructions action buttons for all account types

- Wire up Edit/View/Delete buttons with click handlers in all 4 HTML templates
  (Current Account, Savings, Fixed Deposit, Recurring Deposit)
- Remove broken [routerLink] from Recurring Deposit HTML
- Add viewInstruction() and editInstruction() methods to all 4 tab components
- Use navigateByUrl with absolute path built from this.router.url to avoid
  Angular multi-level .. navigation bug (was producing literal .. in URL)
  CA/Savings/RD: basePath + /transfer-funds/:id/view|edit
  FD: basePath + /transactions/account-transfers/:id/view|edit
- Fix deleteStandingInstruction() to refresh table after delete in all tabs
- Fix AccountTransfersService.deleteStandingInstrucions to use
  PUT ?command=delete instead of HTTP DELETE (backend soft-delete only)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jaanu423
2026-05-26 11:42:18 +05:30
co-authored by Claude Sonnet 4.6
parent ae414c620e
commit 33b01d667d
9 changed files with 70 additions and 11 deletions
@@ -106,7 +106,7 @@ export class AccountTransfersService {
deleteStandingInstrucions(id: any) {
const httpParams = new HttpParams().set('command', 'delete');
return this.http.delete(`/standinginstructions/${id}`, { params: httpParams });
return this.http.put(`/standinginstructions/${id}`, {}, { params: httpParams });
}
getStandingInstructionsTransactions(standingInstructionsId: any, dateFormat: any, locale: any) {