The close session flow is a multi-step wizard that guides the user through closing out their POS session, counting cash, and generating a session report.Documentation Index
Fetch the complete documentation index at: https://docs.laportenard.com/llms.txt
Use this file to discover all available pages before exploring further.
Permissions
Closing a session requires theclose_session permission. The close session option appears in the floor plan header’s system menu.
Wizard steps
The close session flow uses a reducer-based state machine with seven states:Loading
Fetches session data from the backend: open order count, payment totals by method, and cash denomination configuration.
Warning (conditional)
If there are open (unpaid) orders, the wizard pauses and shows a warning. The user must acknowledge before continuing.
Cash counting
Displays the cash denomination counting interface. Users enter counts per denomination (bills and coins) using a numpad. The system calculates the expected vs. actual cash totals.
Manager override (conditional)
If required by POS configuration, a manager must approve the session close via PIN or card authentication.
Closing
Submits the close session request to the backend with cash counts and optional manager override credentials.
Print report (optional)
Prints the session report with payment breakdowns, expected vs. actual totals, and discrepancies.
Cash counting
The denomination counting interface supports:- Pre-configured denominations from
cashbox_linesin the Odoo session - Expression input with
+and−operators for adjustments (e.g.,5+3= 8 bills) - Manual cash entry as an alternative to denomination counting
- Real-time totals comparing expected cash (from payment lines) vs. counted cash
API endpoints
| Endpoint | Purpose |
|---|---|
POST /pos-api/v1/session/close/prepare | Fetch session data, open order count, payment totals |
POST /pos-api/v1/session/close | Submit close with cash counts and optional manager override |
POST /pos-api/v1/session/report | Fetch session report data for printing |
POST /pos-api/v1/session/comment | Post a comment to the session |