feat: dynamic denomination breakdown in deposit forms + savings menu scroller
Deposit forms (Current/Savings/FD/RD) now load cash denominations from the Denomination Master instead of a hardcoded list: - active + discontinued denominations fetched via /denominationmaster - discontinued rows hidden by default behind a "Show discontinued" toggle, rendered faded and disabled (cannot be counted) when revealed - rows sorted by value descending; redesigned as a Denom/Qty/Amount table with circular coin chips and per-row amount (faded at zero) Also: savings account-actions menu now scrolls (max-height + grouped sections mirror the current-account menu) and renders all action items. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
918a90368c
commit
89e17f561f
@@ -170,6 +170,14 @@ export class SavingsAccountViewComponent implements OnInit {
|
||||
return this.ACTION_ICON[name] ?? fallback ?? 'circle';
|
||||
}
|
||||
|
||||
hasKind(kind: 'transact' | 'block' | 'interest' | 'admin' | 'danger'): boolean {
|
||||
const all = [
|
||||
...(this.buttonConfig?.singleButtons ?? []),
|
||||
...(this.buttonConfig?.options ?? [])
|
||||
];
|
||||
return all.some((item) => this.kindOf(item.name) === kind);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches savings account data from `resolve`
|
||||
* @param {ActivatedRoute} route Activated Route
|
||||
|
||||
Reference in New Issue
Block a user