feat(terminal): counter POS screen with server-priced cart and shift gate (platform-v2 3.3a)

- Backend /api/pos (pos_counter): session (business day, the cashier's own shift,
  self-start, who can open the day), menu (sellable products with every kind of choice,
  no costs; price now from the pricing engine), quote (lines by id → the waiter's
  selected_options entries with DB prices → resolve_price as orders do; pos.line_invalid).
- POS device settings: default order type, start category, receipt printer (new ref
  sources categories / printers, also in the manager's Devices dialogs).
- Terminal apps/pos: shift gate (start shift with drawer cash), categories, search,
  product grid, price check, options dialog, cart priced by the backend.
- Tests: backend test_pos (13), terminal pos.test.mjs, manager refOptions,
  terminal.mjs +10 POS checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 21:55:30 +02:00
co-authored by Claude Opus 5.5
parent b1112b249e
commit 17bee66df1
25 changed files with 1556 additions and 21 deletions
+44
View File
@@ -161,5 +161,49 @@
"taken_by_me": "You're on it",
"released": "Let go"
}
},
"pos": {
"allProducts": "All products",
"search": "Search products",
"clearSearch": "Clear the search",
"noResults": "Nothing matches “{{query}}”",
"noProducts": "No products here",
"orderType": "Order type",
"type": {
"takeaway": "Takeaway",
"here": "Eat in"
},
"cartEmpty": "The cart is empty",
"cartEmptyBody": "Tap a product to add it. The (i) button shows its price without adding it.",
"total": "Total",
"clearCart": "Clear the cart",
"quoteFailed": "Couldn't price the cart. Check the choices and try again.",
"checkPrice": "Price and details of {{name}}",
"less": "One less",
"more": "One more",
"each": "{{price}} each",
"dialog": {
"close": "Close",
"add": "Add to cart",
"pickOne": "choose one",
"quick": "Add-ons",
"extras": "Extras",
"without": "Without",
"note": "Note for the kitchen",
"quantity": "Quantity",
"missing": "Still to choose: {{list}}"
},
"gate": {
"dayClosed": "The business day isn't open",
"dayOpeners": "Ask someone who can open it: {{names}}.",
"dayOpenersNone": "Nobody here can open it yet; set it up in the manager.",
"noShift": "You don't have a shift running",
"askManager": "Ask a manager to start your shift, then try again.",
"startTitle": "Start your shift",
"startBody": "The cash you take at this counter goes to your shift.",
"startingCash": "Cash in the drawer now",
"badAmount": "Enter an amount, e.g. 50 or 50,00",
"start": "Start shift"
}
}
}