Skip to content

Cash Register

Cash drawer management, shift open/close, Z-reports, and petty cash.

6 min read

Overview

The cash register module manages the physical cash at a location: opening and closing the drawer with a denomination-wise count, recording cash movements in and out, reconciling at close, and keeping a Z-report for every closed drawer. It lives at /dashboard/cash and works per store (location).

Kagami cash register drawer management showing opening floats, cash drops, petty cash, and shift reconciliation

Most days a manager does not use the Cash Register page to open or close the drawer. The drawer is opened and closed as part of Open / Close Salon (/dashboard/open-close), which also collects attendance and the opening checks. See the Day Open and Close section below.

One Drawer Per Location

A location has at most one open drawer shift at a time. This is enforced by a unique database index (one_open_shift_per_location); trying to open a second one returns "A shift is already open for this location". There is no multi-drawer / per-terminal model. The page shows the drawer of the store selected in the sidebar (with "All stores" it falls back to the brand's first active location).

Drawer Lifecycle

Opening the Drawer

  1. The opener counts the cash by denomination: notes of 500, 200, 100, 50, 20 and 10, plus a single loose-coins amount.
  2. The system derives the opening float from that count and stores both the total and the breakdown, with the opener and timestamp.
  3. The drawer is now "open": cash sales post against it.

An auto-opened drawer also exists (open_mode = auto, float 0, no opener). A manager completes it later by entering the opening count.

There is no separate X-report (mid-shift snapshot). While a shift is open, the Cash Register page shows live Opening float, Cash sales, Movements and Expected now figures.

During the Shift

  • Cash sales are not entered by hand. They are calculated from invoices paid in cash at that location since the shift opened: the cash leg of split-tender invoices plus single-tender cash invoices.
  • Cash movements are manual entries with a type (in or out), an amount greater than zero, and a required reason. The recorder and timestamp are stored.
  • Approving a cash-method expense posts an out movement to the open drawer automatically (one movement per expense). If no drawer is open the approval fails with "No open cash drawer shift for this store".

Closing the Drawer

  1. The closer counts the physical cash by denomination and can add notes.
  2. The system computes expected cash = opening float + cash sales + cash in - cash out.
  3. Variance = counted - expected (negative means short).
  4. The shift is marked closed with the closer, time, counted and expected totals, closing breakdown and notes.

A closed drawer cannot be re-closed. The close only succeeds while the shift is still open, so it never overwrites a drawer the system closed in the meantime.

Auto-close and late count

If a salon day is left open, the system closes it 2 hours after the store's scheduled closing time (AUTO_CLOSE_GRACE_MIN = 120), and closes the drawer without a count. That Z-report shows "Not counted (auto-closed)". A manager or owner can record the late count from the Z-report page; the first count wins, and the figures are copied onto the closed day's report.

Day Open and Close

/dashboard/open-close ("Open / Close Salon") is the main way to open and close a drawer:

  • Open day (managers only): count opening cash (skipped if a drawer is already open), mark every rostered staff member present / week off / on leave, and answer the opening checks. This creates the day session and opens the drawer.
  • Close day (managers only): count closing cash, enter a bank drop (amount, retained float, recipient, optional reference), and close. The drawer is closed with the count, a closing report is built and sent as an alert, and any unresolved exceptions are raised with the owner rather than blocking the close.
  • Reopen day (managers only): escape hatch for a late bill or an accidental close.
  • Day-open requirement: a brand-level switch, on by default, that blocks billing until the salon day is open and a drawer shift exists. Only the owner (and super admin) can change it.

Managers are sent to Open / Close Salon when no shift is open. Users who an owner has granted the Cash Register page can open and close the drawer from the Cash Register page itself.

Z-Report

Each closed shift has a Z-report at /dashboard/cash/<shift id>/z-report. It can be viewed again at any time and printed; it is not a one-time document. Contents:

Section Contents
Header Location, who closed the shift, opened and closed times
Opening float Total, with the denomination breakdown when recorded
Cash sales Cash taken at the location during the shift
Movements Each cash-in / cash-out (reason, time, amount) and the net movement
Expected in drawer Float + cash sales + net movements
Counted by staff Closing count, with denomination breakdown
Variance Counted - expected, or "Not counted" for an auto-closed drawer
Notes Closing notes, including any "Counted later" note

The Z-report does not contain a payment-method breakdown, service totals or a GST summary. Those sales figures are in the day's closing report (Open / Close Salon) and the sales reports.

Cash Movements

Movements have only two types, in and out, with a free-text reason (for example "Petty cash for supplies"). There are no separate "petty cash" or "bank deposit" movement types, and movements cannot be voided or edited from the UI. The end-of-day bank drop is recorded on the day-close form, not as a movement.

Petty Cash

Petty cash is a separate ledger at /dashboard/finance/petty-cash (table petty_cash_ledger), with a running balance per location. It is not part of the drawer shift and does not change the drawer's expected cash.

Alerts

Per-location settings (Settings > Cash register) control two banner alerts, both on by default:

  • Opening alert (default 10:00): shown once the time has passed and no opening count has been recorded today.
  • Closing alert (default 21:00): shown once the time has passed, a shift exists today, and no closing count has been recorded.

Times are 24-hour HH:MM in IST. A third, stale drawer alert fires when a shift has been open for 24 hours or more; stale drawers are flagged, never closed automatically by this alert. The same alerts are also sent through the alert system (cash_register_count_missing, once per store per kind per day) by the 15-minute opening-checklist cron; recipients are set in Settings > Alerts.

Permissions

Access to the Cash Register page and every cash action is checked with the /dashboard/cash page permission. By default that is managers only (org_owner, brand_manager, location_manager, plus super_admin). An owner can turn "Cash Register" on for front desk or stylist in Settings > Roles and Permissions, and those users can then open, close and record movements from the Cash Register page. See Roles & Permissions.

Action Default roles
View Cash Register, open / close drawer, record movement, view Z-report Managers (owner, brand manager, location manager); front desk / stylist only if granted
Record a late count on an auto-closed drawer Managers only (always)
Change opening / closing alert settings Managers only
Open day, close day, reopen day (Open / Close Salon) Managers only
Day-open requirement switch Owner / super admin only

Key Data Entities

  • cash_drawer_shifts - one drawer shift per row: location, opener and closer, open mode (manager or auto), opening float and breakdown, expected, counted and variance, closing breakdown, notes, status (open / closed)
  • cash_movements - each manual cash-in or cash-out: shift, type, amount, reason, recorder, timestamp, optional link to the source expense
  • salon_day_sessions - the Open / Close Salon day record: attendance, linked drawer shift, bank drop, closing report
  • location_cash_alert_settings - per-location opening and closing alert switches and times
  • petty_cash_ledger - petty cash entries and running balance (separate from the drawer)