fix(branchday): block day close when cashiers holding cash are not reconciled or settled
This commit is contained in:
@@ -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' }}
|
||||
|
||||
Reference in New Issue
Block a user