You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cierre de caja: day close with counted-vs-expected cash (Z report) #649
FloCafe has no cash register close. Reports cover sales and collections, and docs/API.md lists X/Z stubs, but no endpoint or screen closes the day or reconciles the drawer.
This issue tracks a day close:
One close per store per day, owner only.
Opening float, expected cash from the day's cash sales minus cash refunds, counted cash, variance.
Immutable numbered Z snapshot, printable, with the drawer pulse firing on print.
Per-cashier sales section inside the Z (orders already carry user_id).
Why a day close and not drawer sessions: in Square and Toast the close unit is the drawer session, and per-cashier sales attribution already exists here through topStaff. The only thing a day close cannot do is pin a cash variance to one person across mid-day handoffs, which our stores do not do. If that changes, sessions arrive as rows with scope='session' in the same table with no Z redesign. That extension is out of scope for this issue.
Spec: docs/plans/2026-09-05-cierre-de-caja.md on branch check-cash-close-feature (carvalab fork).
Planned work: migration v81 (cash_closures), GET x-report, POST cash-closures, GET z-report, POST print, dashboard modal, i18n keys in all locales, route tests plus a v81 migration upgrade-path test. This picks up the day-close/shift reconciliation work deferred to #279.
Out of scope: sessions, paid in/out movements, reopening a closed day, blind close, multiple terminals, custom cash method names, auto-rollover.
Activity
fix(cash): key staff and tax snapshots by paid day (ref FreeOpenSourc…
fix(cash): orderCount docs and simplify count (ref FreeOpenSourcePOS#649
fix(cash): block submit on invalid amounts, nullable conversion (ref F…
feat(cash): printable Z preview before printing (ref FreeOpenSourcePO…
fix(cash): preview matches printer profile (ref FreeOpenSourcePOS#649)
fix(cash): preview uses print-path column formula (ref FreeOpenSource…
feat(cash): designed ticket preview for Z (ref FreeOpenSourcePOS#649)
fix(cash): ticket preview labels, tax units, cleanup (ref FreeOpenSou…
fix(cash): refunds block, fa.json, preview types (ref FreeOpenSourceP…
feat(cash): guided 3-step close wizard (ref FreeOpenSourcePOS#649)
fix(cash): wizard button, jump guard, refund label, dead keys (ref Fr…
fix(cash): method rows already major units (ref FreeOpenSourcePOS#649)
fix(cash): reach date picker from closed-day view (ref FreeOpenSource…
fix(cash): another-day starts with empty date (ref FreeOpenSourcePOS#649
fix(cash): keep today default, empty date only for another-day (ref F…
13 remaining items
fix(cash): wizard button, jump guard, refund label, dead keys (ref Fr…
fix(cash): method rows already major units (ref FreeOpenSourcePOS#649)
fix(cash): reach date picker from closed-day view (ref FreeOpenSource…
fix(cash): another-day starts with empty date (ref FreeOpenSourcePOS#649
fix(cash): keep today default, empty date only for another-day (ref F…
fix(cash): clear loading on empty date (ref FreeOpenSourcePOS#649)
fix(cash): date picker always visible on step 1 (ref FreeOpenSourcePO…
refactor(cash): drop unused printable-text preview endpoint (ref Free…
fix(cash): review fixes for day-close reconciliation, wizard, and pri…
fix(cash): trim review-note comments to what the code does not say (ref
fix(cash): review fixes for day-close reconciliation, wizard, and pri…
feat(cash): day close with counted-vs-expected cash and numbered Z re…
feat(cash): day close with counted-vs-expected cash and numbered Z re…
feat(cash): day close with counted-vs-expected cash and numbered Z re…