Tables and open bills
Open an order on a table, add items to it as the meal goes on, and close it when the guests are ready.
src/routes/pos.ts:4525 /tables · :3335 POST /orders · :3543 POST /orders/:id/itemsA dine-in service has a different rhythm from a delivery kitchen: tables turn, bills are shared, and the customer pays at the end. AgenX handles that service and posts every sale to the same ledger as your stock, VAT and payroll.
Open an order on a table, add items to it as the meal goes on, and close it when the guests are ready.
src/routes/pos.ts:4525 /tables · :3335 POST /orders · :3543 POST /orders/:id/itemsA booking holds a table for its seating window, and a second booking that overlaps it is refused, not silently accepted.
src/lib/table-clash.ts · src/routes/reservations.ts:539-544Split a bill evenly and every share is worked out in whole fils, so the shares add up to the bill and the VAT on the shares equals the VAT on the sale.
src/lib/split.ts · src/routes/pos.ts:4894 POST /orders/:id/splitEach branch can carry its own service charge, and tips are recorded separately from sales so they are never counted as revenue.
src/routes/pos.ts:3506-3513 · src/lib/sale-journal.ts:37 tipsPayableDishes go to the station that cooks them, such as grill or cold prep, and the pass shows what is ready to leave the kitchen.
src/lib/station-rules.ts · src/routes/pos.ts:432-540, :5780 GET /kdsVoid and discount rates are ranked per cashier from posted orders, so an unusual pattern is a number to look at, not a hunch.
src/routes/ai.ts:368 GET /ai/fraud-signalsWhen an order closes, the same step depletes the recipe, costs the dish and posts a balanced journal with 5% VAT, so the till, the stock and the ledger are not three exports to reconcile.