POS engine concepts: registers, shifts, sales
How the StillDeep POS engine works: business server, registers, shifts, carts and sales, the outbox, offline mode, printed numbers and modules.
Business server
One server per business, on its local network. It holds the PostgreSQL database (the single source of truth), the gRPC gateway of the registers (Server.Service) and the Admin and Report web apps. Each business owns its server and its data.
- Register → Server.Service → ServerDB
- Register → ServerDB: never, no password on a register
- Register → Server.Service → ServerDB
- Register → ServerDB: never, no password on a register
Register
A point of sale: a touch register, a kiosk, a tablet or a web shop. A register has its own identity, its own permissions and its own local SQLite copy of the reference data (catalog, taxes, members). It never connects to the database directly: every operation goes through the proxy on the business server.
Screen
What the cashier or the customer sees. The screen is a client of the register engine, over the gRPC contract or in-process for .NET. It holds no business rules: it shows what the engine returns.
Shift
An employee's work period on registers: opened by badge or password, paused and resumed, possibly moved to another register, then closed with a cash count. Every payment counts in the shift that took it.
The inactivity timeout is set on the register's record, in minutes; empty or 0 means unlimited. On a .NET register linked in-process, the shift pauses after this timeout, online and offline, but never during an action, and never for a service shift or a shared shift. Every pause on these registers cancels the sale in progress and releases what it held; a sale with an accepted payment stays on the register.
Cart and sale
A cart collects items, customer, discounts, fees and payments. The sales engine applies the same rules on every register. When the cart is finalized, the sale is written locally and sent to the server, which checks prices, taxes and totals again.
Outbox
The local table of sales and operations not yet sent to the server. A background worker drains it, and a register always drains it first at startup, before any update, so that an update never erases unsent sales.
- Drain the outbox3 sales sent to the server
- Read the server versiona new image is available
- Updatenothing unsent left to lose
- Sellonline, or from SQLite if the server is down
Stock and limited seats are guaranteed online only.
- Drain the outbox3 sales sent to the server
- Read the server versiona new image is available
- Updatenothing unsent left to lose
- Sellonline, or from SQLite if the server is down
Stock and limited seats are guaranteed online only.
Offline mode
With the Offline module, offered on the Platinum tier, when the server cannot be reached, the register sells from its local copy. This applies to a register left open when the link is cut, silent or very slow, when the server restarts or when PostgreSQL stops. It reconnects on its own when the server comes back. Card payments still work if the terminal reaches its processor. Stock and limited seats are held on the server when the register is online; a paid sale replayed from the outbox is not refused for a business reason.
- Server unreachable The register keeps selling from its SQLite copy. Outbox · 3RE5000124RE5000125RE5000126
- Server back The outbox drains first: 3 sales sent, none lost. Outbox · 0sent
- Then the update Nothing unsent can be overwritten.
- Server unreachable The register keeps selling from its SQLite copy. Outbox · 3RE5000124RE5000125RE5000126
- Server back The outbox drains first: 3 sales sent, none lost. Outbox · 0sent
- Then the update Nothing unsent can be overwritten.
Review queue and given-up messages
What the server cannot prove about a document from the outbox (rights, price, discount, seat) is recorded with its reason and waits in the Admin's To review queue for an employee to mark it reviewed. The review undoes nothing: a concluded sale stays concluded.
When a message is refused for good, the register gives it up and it appears on the Admin's Given up page (/given-up), with the register, the date and the reason. With the outbox.redeliver permission, a manager can request its redelivery; the action is recorded in the audit log. A sealed sale is sealed again at the next rank; a sealed shift is not redelivered, and the page says why. For a paid sale, only what cannot be recorded without lying ends up here: a false seal, a document that does not add up, a number already taken.
Time zones
PostgreSQL is the only source of the time zone rules: the server reads the ones the business uses and gives them to the registers, which keep them for offline use. The software never contradicts the database; when it falls behind the known rules, the Admin asks you to update it. The server's zone is set on the Company page, and the zone of a register or kiosk in the Admin console; when it is empty, the server's zone applies. A customer's zone is kept on their record: only the Transport example sets it, in the customer file. A document writes it through the customer date; with no zone, or no customer, the server's zone applies.
Printed numbers
Receipts, tickets, reservations and shifts carry a short readable number: two letters, the register, then a sequence (for example RE5000123). Two registers never print the same number, even offline.
Modules and extensions
The nine business modules (ticketing, retail, bars and restaurants, loyalty cards, custom document generator, services, rental, sites and seats, transport) are compiled in the engine; each register sells every module on the account (modules). Extensions are separate .NET packages that add rules, Admin sections and pages; they are installed from the Admin and distributed to the registers by the business server. Every active extension is required when a register starts (presence and integrity).
Money and quantities
Amounts are integer cents, percentages are millionths (100% = 1,000,000), quantities are thousandths in the contract (decimals in the .NET libraries). StillDeep never uses floating-point numbers for money, taxes or quantities.
| On screen | In the contract | Unit |
|---|---|---|
| $27.59 | 2759 | cents (int64) |
| 9.975% | 99750 | millionths (100% = 1000000) |
| 0.482 kg | 482 | thousandths |
| Oct. 16, 10:30 am (Quebec) | 2026-10-16T14:30:00Z | UTC |
| On screen | In the contract | Unit |
|---|---|---|
| $27.59 | 2759 | cents (int64) |
| 9.975% | 99750 | millionths (100% = 1000000) |
| 0.482 kg | 482 | thousandths |
| Oct. 16, 10:30 am (Quebec) | 2026-10-16T14:30:00Z | UTC |