From f0c06988c01943935a387ec16cee974ef050654c Mon Sep 17 00:00:00 2001 From: Nitesh Yadav Date: Thu, 10 Sep 2026 12:40:32 +0530 Subject: [PATCH] fix(cashier): My Vouchers filters, Fund Transfer GL support, and disbursement-list rename MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit my-work.component (My Vouchers): - The five summary tiles (Received/Payments/Journal/Entered/Approved) were bound directly to the server's day-total fields, so they stayed fixed at the combined "entered + approved" figure no matter what the Side/My part dropdowns were set to. They're now pinned to this user's own entered rows only (enteredRows), independent of both filters, so "how much did I personally put through today" reads correctly regardless of what the table below happens to be filtered to. The table and its dropdowns are unchanged and still default to showing everything. transaction-entry.component (Fund Transfer): - onSave()'s plain bank-transfer branch (SD/CA/CB only) was catching every 'Fund Transfer' row before the GL-aware Disbursement/Collection branch below it could see them, so a Fund Transfer against a GL account was always rejected with "Invalid Account Type" even though that branch already supports it under the same label. Fund Transfer rows that include a GL leg now skip the plain-transfer branch and fall through correctly. my-disbursement-requests.component (Disbursements & Transfer list): - getCreditEntries() only read the stored credit_entries JSON, which holds the full picture for Collection (its GL leg is one of the entries) but not for Disbursement/Fund Transfer, whose GL is the request's own top-level source (gl_account_no/dr_amount) and was never in that array. The DR/CR breakdown for those two types showed only the credit side, looking like half the entry was missing. The GL leg is now synthesised back in as the first row for those two types, matching what actually posted. - Renamed the clerk's "My Disbursements" / "My Disbursement Requests" screen to "Disbursements & Transfer" throughout (nav tab, dropdown menu, route title/breadcrumb, cashier counter link, page header) — the register covers Disbursement, Collection, Fund Transfer and Bank Transfer requests, and the old name read as disbursement-only. "My Requests" (Withdrawal Slip requests, a separate register) is renamed to "Withdrawal Request" for the same reason: neither name said what was actually inside. --- .../branch-day/branch-day.component.html | 15 ++++++- .../branch-day/branch-day.component.ts | 26 ++++++++--- src/app/cashier/cashier-routing.module.ts | 2 +- .../cashier/my-work/my-work.component.html | 15 ++++--- src/app/cashier/my-work/my-work.component.ts | 44 ++++++++++++++++++- .../transaction-entry.component.html | 4 +- .../transaction-entry.component.ts | 14 +++++- .../my-disbursement-requests.component.html | 10 +++-- .../my-disbursement-requests.component.ts | 24 +++++++++- src/app/core/shell/shell.component.html | 6 +-- src/environments/.env.ts | 4 +- 11 files changed, 133 insertions(+), 31 deletions(-) diff --git a/src/app/cashier/branch-day/branch-day.component.html b/src/app/cashier/branch-day/branch-day.component.html index 13c4f28c2..a2fd93d0a 100644 --- a/src/app/cashier/branch-day/branch-day.component.html +++ b/src/app/cashier/branch-day/branch-day.component.html @@ -559,9 +559,20 @@

} - @if (isLateClose) { + + @if (isLateClose || hasUnreconciledOrUnsettledCashiers) {