fix(branchday): block day close when cashiers holding cash are not reconciled or settled
build-run / Run Lint, Build and Deploy (push) Canceled after 0s
Publish Image in Docker Hub / build (push) Canceled after 0s
Playwright E2E Tests / Run Playwright Tests (push) Canceled after 0s
Tests / testRigor (push) Canceled after 0s

This commit is contained in:
2026-09-02 12:06:08 +05:30
parent 63134f172a
commit d90719ad8d
4 changed files with 102 additions and 2 deletions
@@ -580,6 +580,33 @@
reversed afterwards.
</p>
@if (hasUnreconciledOrUnsettledCashiers) {
<div class="pg-alert pg-alert--error bd-reconcile-block">
<mat-icon>block</mat-icon>
<div>
<strong>Cannot close the day — cashiers still holding cash have not been reconciled or settled.</strong>
<ul class="bd-reconcile-block__list">
@for (detail of unreconciledOrUnsettledCashierDetails; track detail.name) {
<li>
<strong>{{ detail.name }}</strong> —
@if (detail.notReconciled && detail.notSettled) {
Not Reconciled, Not Settled
} @else if (detail.notReconciled) {
Not Reconciled
} @else {
Not Settled
}
</li>
}
</ul>
<span class="db-muted"
>Each cashier must reconcile their cash and settle it back to the vault before the branch day can be
closed.</span
>
</div>
</div>
}
<div class="db-panel__actions">
<button type="button" class="pg-btn pg-btn--primary" (click)="submitClose()" [disabled]="!canSubmitClose">
{{ isLateClose ? 'Force Close Day' : 'Close Day' }}