- Add Transaction Entry screen with full account details panel (personal info, joint holders, nominees, KYC, balances) - Role-based layout: CASHIER role hides nav/sidebar/ticker, redirects to /cashier/transaction-entry on login - Denomination entry with opening/closing position preview (notes first then coins, stepper +/- round button inputs) - Auto-fetch savings/current/FD/RD accounts with associations, client KYC, nominees, addresses, family members (S/D/W/H/O) - Submit deposit/withdrawal via POST /transactions with denominationBreakdown - Cashier position auto-loads for CASHIER role (no filter dropdowns) - Pagination added to cash-history tabs and currency-exchange-detail - Cashier menu simplified for cashier role permissions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
67 lines
1.8 KiB
HTML
67 lines
1.8 KiB
HTML
<!--
|
|
Copyright since 2025 Mifos Initiative
|
|
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
-->
|
|
|
|
<div class="pg">
|
|
<header class="pg-head">
|
|
<div>
|
|
<div class="pg-eyebrow">CASHIER · EXCHANGE</div>
|
|
<h1 class="pg-title">Currency Exchange Detail</h1>
|
|
<p class="pg-sub">All recorded cash exchanges (notes/coins swapped at the counter).</p>
|
|
</div>
|
|
<a class="pg-btn pg-btn--primary" [routerLink]="['/cashier/cash-exchange']">
|
|
<mat-icon>add</mat-icon> New Exchange
|
|
</a>
|
|
</header>
|
|
|
|
@if (loading) {
|
|
<div class="pg-empty">Loading…</div>
|
|
}
|
|
|
|
<div class="pg-card">
|
|
<table class="pg-table">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Date</th>
|
|
<th class="num">Amount</th>
|
|
<th>Note</th>
|
|
<th>By</th>
|
|
<th>Recorded</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@for (e of exchanges; track e.id) {
|
|
<tr>
|
|
<td>{{ e.id }}</td>
|
|
<td>{{ e.exchangeDate || '—' }}</td>
|
|
<td class="num">₹{{ e.exchangeAmount | number: '1.2-2' }}</td>
|
|
<td>{{ e.note || '—' }}</td>
|
|
<td>{{ e.performedByUsername || '—' }}</td>
|
|
<td>{{ e.createdAt || '—' }}</td>
|
|
</tr>
|
|
}
|
|
@if (!loading && exchanges.length === 0) {
|
|
<tr>
|
|
<td colspan="6" class="pg-empty">No cash exchanges recorded yet.</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
|
|
<mat-paginator
|
|
[length]="totalRecords"
|
|
[pageSize]="pageSize"
|
|
[pageIndex]="pageIndex"
|
|
[pageSizeOptions]="pageSizeOptions"
|
|
showFirstLastButtons
|
|
(page)="onPageChange($event)"
|
|
>
|
|
</mat-paginator>
|
|
</div>
|
|
</div>
|