TillSession
object type
A TillSession — the cash-drawer session at a Register: opened by a User with a counted starting float, tracking float / expected / counted / over-short through the immutable CashEntry ledger (the Stock-Card discipline — nothing changes the drawer without a ledger entry). ONE live session per register (STRICT — the tillSession marker). Expected cash = the drawerTotals cache, stamped in the SAME transaction as every entry post. The shift IS this doc (openedBy + createdAt→closedAt); X/Z report ARTIFACTS are the reports family.
Fields
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The group-scoped human-facing system id (TS-…). |
type | String String! | The kind of record — always TillSession here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The FSM state: open | suspended | counting | closed | abandoned. |
parentId | ID ID! | The parent Register; rootId = the org group; parentId!== rootId always. |
rootId | ID ID! | The org-group family root. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID ID! | The OCC revision token — supply it on every mutation of this record; rotates on every write. |
refCaptions | RefCaption [RefCaption!]! | The server-composed captions of this record's declared references (the referenced-caption rule) — one row per referenced id; see RefCaption. |
openedBy | ID ID! | The opening User, server-stamped from the principal. |
float | DrawerAmount [DrawerAmount!]! | The declared opening float, verbatim. |
drawerTotals | DrawerAmount [DrawerAmount!]! | The per-currency running drawer totals. Expected cash = this list. |
counted | DrawerAmount [DrawerAmount!] | CLOSE-stamped: the counted drawer, verbatim. |
overShort | DrawerAmount [DrawerAmount!] | CLOSE-stamped: counted − expected per currency (negative = short, positive = over; each non-zero figure posted a count_adjust entry). |
closedAt | String | The terminal instant (stamped at close AND abandon — the shift period's end). |
noSaleCount | Int | The no_sale audit trail — drawer-opened-without-sale count; absent = none. |
lastNoSaleAt | String | The most recent no-sale instant (rides every noSale stamp). |