From d90719ad8df2417ae8833a2e956940ca13849bca Mon Sep 17 00:00:00 2001
From: Nitesh Yadav
Date: Wed, 2 Sep 2026 12:06:08 +0530
Subject: [PATCH] fix(branchday): block day close when cashiers holding cash
are not reconciled or settled
---
.../branch-day/branch-day.component.html | 27 +++++++++++++
.../branch-day/branch-day.component.scss | 33 +++++++++++++++
.../branch-day/branch-day.component.ts | 40 +++++++++++++++++++
src/environments/.env.ts | 4 +-
4 files changed, 102 insertions(+), 2 deletions(-)
diff --git a/src/app/cashier/branch-day/branch-day.component.html b/src/app/cashier/branch-day/branch-day.component.html
index 25bbb9933..13c4f28c2 100644
--- a/src/app/cashier/branch-day/branch-day.component.html
+++ b/src/app/cashier/branch-day/branch-day.component.html
@@ -580,6 +580,33 @@
reversed afterwards.
+ @if (hasUnreconciledOrUnsettledCashiers) {
+
+
block
+
+
Cannot close the day — cashiers still holding cash have not been reconciled or settled.
+
+ @for (detail of unreconciledOrUnsettledCashierDetails; track detail.name) {
+ -
+ {{ detail.name }} —
+ @if (detail.notReconciled && detail.notSettled) {
+ Not Reconciled, Not Settled
+ } @else if (detail.notReconciled) {
+ Not Reconciled
+ } @else {
+ Not Settled
+ }
+
+ }
+
+
Each cashier must reconcile their cash and settle it back to the vault before the branch day can be
+ closed.
+
+
+ }
+