Skip to content

Cierre de caja: day close with counted-vs-expected cash (Z report) #649

Closed

Description

@carvalab

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

  1. 13 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions