The Day Open form's note/coin table started at zero even though the branch's own closing count from the day before was already on record -- whoever opened the day had to re-key numbers that were already known. It now auto-fills from that closing count, flags any row a manual edit moves away from it, and shows a live Tallied/Short/Excess comparison against it -- so a short or excess opening count is visible before the day is opened, not discovered later. A reason is required once a mismatch exists, matching the new backend enforcement. Also fixes the register table's date chip wrapping onto two lines when the column narrows. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
298 lines
5.6 KiB
SCSS
298 lines
5.6 KiB
SCSS
/**
|
|
* 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/.
|
|
*/
|
|
|
|
/* Page chrome comes from cashier-shared.scss; the badges, panel and comparison tiles are shared
|
|
with the day book. Only what is specific to the day register lives here. */
|
|
|
|
/* Read-only notice for a cashier. Defined here rather than borrowed from the exceptions screen so
|
|
this component does not depend on another component's stylesheet. */
|
|
.ve-note {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 14px;
|
|
margin-bottom: 14px;
|
|
background: #eff6ff;
|
|
border: 1px solid #bfdbfe;
|
|
border-radius: 8px;
|
|
color: #1e40af;
|
|
font-size: 12px;
|
|
|
|
mat-icon {
|
|
font-size: 18px;
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
}
|
|
|
|
.bd-success {
|
|
padding: 10px 14px;
|
|
margin-bottom: 14px;
|
|
background: #f0fdf4;
|
|
border: 1px solid #bbf7d0;
|
|
border-radius: 8px;
|
|
color: #14532d;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* One row per never-closed day, inside the shared red exception panel. */
|
|
.bd-missed {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
padding: 7px 0;
|
|
font-size: 12px;
|
|
border-top: 1px dotted #fecaca;
|
|
|
|
&__age {
|
|
color: #b91c1c;
|
|
}
|
|
|
|
/* Pushed right so the date and age read before the action. */
|
|
&__act {
|
|
margin-left: auto;
|
|
height: 28px;
|
|
font-size: 11px;
|
|
}
|
|
}
|
|
|
|
/* The branch's current day — the one thing someone opening this screen is looking for. */
|
|
.bd-current {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
padding: 14px 16px;
|
|
margin-bottom: 14px;
|
|
background: #fff;
|
|
border: 1px solid #e2e8f0;
|
|
border-left: 4px solid #f59e0b;
|
|
border-radius: 8px;
|
|
|
|
/* No day open at all: nothing is running, so the amber "in progress" edge would mislead. */
|
|
&--shut {
|
|
border-left-color: #94a3b8;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
&__main {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
&__date {
|
|
font-size: 15px;
|
|
color: #0d1b2a;
|
|
}
|
|
|
|
.pg-btn {
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
|
|
.bd-panel {
|
|
margin-bottom: 14px;
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
|
|
/* A late close is a different act from an ordinary one, and looks like it. */
|
|
&--late {
|
|
border-left: 4px solid #dc2626;
|
|
}
|
|
|
|
&__wide {
|
|
display: block;
|
|
margin-top: 12px;
|
|
max-width: 640px;
|
|
}
|
|
}
|
|
|
|
/* The closing figure's arithmetic, laid out as a running sum so each line can be checked against
|
|
the screen it came from. */
|
|
.bd-calc {
|
|
max-width: 520px;
|
|
margin-bottom: 14px;
|
|
padding: 10px 14px;
|
|
background: #fff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
font-size: 12px;
|
|
|
|
&__row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 5px 0;
|
|
color: #475569;
|
|
|
|
&--in .bd-calc__amt {
|
|
color: #15803d;
|
|
}
|
|
|
|
&--out .bd-calc__amt {
|
|
color: #b91c1c;
|
|
}
|
|
|
|
&--total {
|
|
margin-top: 4px;
|
|
padding-top: 8px;
|
|
border-top: 2px solid #e2e8f0;
|
|
font-weight: 800;
|
|
font-size: 14px;
|
|
color: #0d1b2a;
|
|
}
|
|
}
|
|
|
|
&__amt {
|
|
font-variant-numeric: tabular-nums;
|
|
font-weight: 700;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&__memo {
|
|
margin-top: 8px;
|
|
padding-top: 8px;
|
|
border-top: 1px dashed #e2e8f0;
|
|
font-size: 11px;
|
|
color: #94a3b8;
|
|
}
|
|
}
|
|
|
|
.bd-hint {
|
|
margin: 10px 0 0;
|
|
font-size: 11px;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
.bd-note {
|
|
max-width: 280px;
|
|
font-size: 11px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* The denomination grid inside the open/close panels — same table chrome as pg-card elsewhere,
|
|
just tightened to sit inside the panel instead of spanning the page. */
|
|
.bd-denom {
|
|
margin: 4px 0 0;
|
|
max-width: 520px;
|
|
|
|
/* Flags a row where the hand-count no longer matches what the vault/cashier positions reported. */
|
|
&__auto {
|
|
display: block;
|
|
margin-top: 2px;
|
|
font-size: 10px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&__reset {
|
|
margin-left: 10px;
|
|
height: 24px;
|
|
padding: 0 10px;
|
|
font-size: 11px;
|
|
}
|
|
}
|
|
|
|
/* Auto-fetched EOD summary: what the vault and every cashier under it currently hold. */
|
|
.bd-eod {
|
|
margin: 0 0 12px;
|
|
padding: 10px 14px;
|
|
background: #fff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
font-size: 12px;
|
|
|
|
&__head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 6px;
|
|
|
|
mat-icon {
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
color: #0ea5e9;
|
|
}
|
|
}
|
|
|
|
&__denoms {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin: 4px 0 8px;
|
|
}
|
|
|
|
&__chip {
|
|
padding: 2px 8px;
|
|
background: #f1f5f9;
|
|
border-radius: 999px;
|
|
font-size: 11px;
|
|
font-variant-numeric: tabular-nums;
|
|
color: #334155;
|
|
|
|
&--up {
|
|
background: #dcfce7;
|
|
color: #15803d;
|
|
}
|
|
|
|
&--down {
|
|
background: #fee2e2;
|
|
color: #b91c1c;
|
|
}
|
|
}
|
|
|
|
&__cashier {
|
|
padding: 6px 0;
|
|
border-top: 1px dashed #e2e8f0;
|
|
|
|
&-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
font-weight: 600;
|
|
color: #0d1b2a;
|
|
margin-bottom: 2px;
|
|
}
|
|
}
|
|
|
|
&__empty {
|
|
font-size: 11px;
|
|
}
|
|
|
|
&__status {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin: 2px 0 6px;
|
|
}
|
|
|
|
&--total {
|
|
border-left: 4px solid #0ea5e9;
|
|
background: #f0f9ff;
|
|
}
|
|
|
|
&__totals {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: 10px;
|
|
margin-bottom: 6px;
|
|
font-size: 13px;
|
|
font-variant-numeric: tabular-nums;
|
|
|
|
&-sum {
|
|
font-weight: 800;
|
|
font-size: 15px;
|
|
color: #0d1b2a;
|
|
}
|
|
}
|
|
}
|