Modules / Point of sale
Point of sale (shops and tills)
Sell over the counter in every shop: open the till with a float, ring up drinks and food, take cash, card or a voucher (or several at once), print a receipt the tax office accepts, refund against the original receipt, keep selling when the internet drops, and at closing count the drawer, print the Z report and let the books, the stock and the bank catch up on their own.
People ask for it as: “till”, “point of sale”, “cash register”, “the card machine”, “open and close the till”, “Z report”, “end of day”, “our coffee shops”, “the till is offline”, “gift cards”, “loyalty stamps”, “TSE”, “NF525”, “Registrierkasse”
Who uses it
| Role | Does | Sees |
|---|---|---|
| Barista / cashier | opens their session with a float, rings up sales, takes payments and tips, refunds within their limit, gives discounts within their role's limit, counts the drawer at close | their own open session and the receipts of their shop for refunds |
| Shift lead / shop manager | approves cash differences, refunds and discounts above a cashier's limit, forces a session closed when a register has died, takes the cash bag to the bank, reads the shop's day | everything in their shop |
| Retail operations / area manager | keeps shops, registers, the till layout, discount limits and recipes; reads every shop's days | every shop |
| Retail accountant | checks each shop's day before it posts, decides tax mismatches and late receipts, reads the trail from a Z report to the journal, the stock moves and the bank | every shop and day |
| The owner (or whoever the owner names) | holds the controls on the people who handle cash (difference threshold, refund and discount limits, blind close, offline limits, fiscal profiles), signs the migration reconciliation | everything |
| The customer at the counter | pays, asks for a receipt or a VAT invoice, collects stamps | their receipt |
| The system | takes receipts from registers (online and offline), signs them through the shop's fiscal capability, sends stock consumption, VAT and the day's journal to the neighbours from pending rows, hands card settlements and cash bags to payments, marks days stale when something arrives late, loads an Odoo migration | every shop, through its own service account |
What it has to do
Reference user stories. Each has a test written into it — the given / when / then — which becomes an automated check once it is built. Expect to keep some, change some and drop some.
Things people do
POS-01As retail operations, I want each shop and its registers set up once, with the company, the warehouse its stock comes from and its fiscal profile, so that a new shop sells correctly from its first receipt.
Given gl company UK01 (GBP) and DE01 (EUR); inventory warehouses LON-SOHO (location LON-SOHO/BAR) and BER-MITTE (BER-MITTE/BAR); fiscal profiles none (UK) and de_kassensichv (DE) seeded · when I create shop LON-SOHO (company UK01, warehouse LON-SOHO, consumption location LON-SOHO/BAR, price list LIST-UK-SHOP, fiscal profile none) with registers R1 and R2, and shop BER-MITTE (DE01, fiscal profile de_kassensichv) with register R1 and TSE serial 7f3a...e1 · then shop_id and register_id are the customer's codes, fixed once a receipt names them; the company must exist in gl (GET /companies/{company_code}), the warehouse and location in inventory (GET /warehouses/{warehouse_id}, GET /locations); a register in a shop whose fiscal profile needs a device (de_kassensichv, at_rksv) cannot open a session until the device is registered (gate fiscal_device_ready); the register's receipt series starts at 1 and is gapless; a register is retired, never deleted, and a retired register's id is never reused
Retail operations / area manager · screen: Shops · reference: not built
Usually different per customer: which shops, which registers, which fiscal profile per country
POS-02As retail operations, I want the till layout (the buttons, their categories and modifiers such as oat milk or an extra shot) kept per shop or group of shops, so that baristas find a drink in one tap.
Given products LATTE-REG, FLAT-WHITE, CROISSANT in product v5, sellable, with sales unit C62; modifiers MOD-OAT (+0.40 GBP, replaces MILK-WHOLE with MILK-OAT in the recipe) and MOD-SHOT (+0.60 GBP, adds 0.009 KGM BEANS-HOUSE) · when I publish layout UK-STD to LON-SOHO and LON-KX · then a button names a product_id, never a copy of its name or price; a product not sellable or not on the shop's price list on the publish date is refused with the product named; the layout is versioned and a register picks up the new version at its next session open, never in the middle of a session
Retail operations / area manager · screen: Layout · reference: not built
POS-03As a barista, I want to open my session by counting the float into the drawer, so that the drawer I close is measured against what I started with.
Given register LON-SOHO-R1 closed; the previous session LON-SOHO-R1-0412 closed with 150.00 GBP left as float; business date 2026-11-14 (business_timezone Europe/London, day_cutoff 04:00) · when I sign in with my PIN at 06:52 and count 150.00 (3 x 20.00, 6 x 10.00, 4 x 5.00, 10.00 in coins) · then session LON-SOHO-R1-0413 is open for business date 2026-11-14 with opening_float 150.00 counted by denomination; a count differing from the previous closing float by more than the difference threshold opens a float difference that a shift lead approves before the first sale; one register has at most one open session (a second open is refused, gate one_open_session); a cashier who is not employed today in hr (when hr is installed) is refused; a session opened at 01:30 belongs to the previous business date (before day_cutoff)
Barista / cashier · screen: Till · reference: not built
POS-04As a barista, I want to record cash going in or out of the drawer (a safe drop, a paid-out for milk from the corner shop), so that the drawer count at close still adds up.
Given session LON-SOHO-R1-0413 open; cash sales so far 380.00 · when I record a safe drop of 200.00 (bag none, to the safe) and a paid-out of 12.00 for 6 LTR of milk with reason MILK and a photo of the shop receipt · then each movement is a cash_move row of the session with kind (safe_drop | paid_in | paid_out | float_top_up), amount, reason and who; a paid-out names a reason whose purpose decides its account (MILK -> purpose shop_supplies) and keeps its receipt image as a DataK3 object raw/pos/<shop_id>/<business_date>/<cash_move_id>.jpg; an amount of zero, negative, or above NUMERIC(18,2) is refused 422; a paid-out above paid_out_limit (default 50.00) needs a shift lead
Barista / cashier · screen: Till · reference: not built
POS-05As a barista, I want to close my session by counting the drawer without seeing what the till expects, so that the count is honest and a difference is found, not explained away.
Given session LON-SOHO-R1-0413: opening float 150.00, cash sales 416.40, cash refunds 3.60, paid-out 12.00, safe drops 200.00; expected cash 350.80; blind_close on; difference_threshold 5.00 · when I count 344.30 at 19:05 and close · then the session moves to counted with counted_cash 344.30, expected 350.80, difference -6.50; because the absolute difference is above the threshold it waits for a shift lead (POS-06); at or below the threshold it closes at once and the difference is still recorded and posted; I see the expected amount only after my count is saved; a session cannot be counted while the register reports receipts not yet synced (gate all_synced) unless a shift lead forces the close (POS-07); a counted session never goes back to open
Barista / cashier · screen: Till · reference: not built
POS-06As the shift lead, I want to approve or query a cash difference with a reason, so that every pound missing from a drawer has a name next to it.
Given session LON-SOHO-R1-0413 counted with difference -6.50, counted by barista A (sub a1, a@shop) · when barista A tries to approve it under a second login (same sub, other email); then I (shift lead B) approve it with reason "coins short in the 2.00 tube" · then the first approval is refused (gate second_person, "you counted this session"); mine closes the session with approved_by, approved_sub, reason and time; the difference posts to purpose cash_over_short in the day's journal (POS-20); a shift lead may instead recount once, which replaces the count before approval and keeps the first count on record
Shift lead / shop manager · screen: Shop day · reference: not built
POS-07As the shift lead, I want to force a session closed when its register has died with receipts on it, so that the shop's day can close and the receipts still arrive later.
Given register LON-SOHO-R2 dropped at 15:10 with local receipts up to R2-0388-0161 and the server holding up to 0154 · when I force-close session LON-SOHO-R2-0388 with reason "tablet broken", counting the drawer at 210.00 · then the session closes as force_closed with the server's last receipt number 0154 and a claimed gap 0155..0161 recorded; the day may post without them; when the receipts arrive (POS-12) they are accepted into the closed session, never into another, the day is marked stale and posts a supplement (POS-21); a receipt number above the claimed gap on that session is refused
Shift lead / shop manager · screen: Shop day · reference: not built
POS-08As a barista, I want to ring up drinks and food and take the payment, so that the customer leaves with a receipt and the drink is made.
Given LON-SOHO price list LIST-UK-SHOP: LATTE-REG 3.60, CROISSANT 2.40, prices include VAT; tax categories hot_drink and food_takeaway, both S 20% in the UK on 2026-11-14 (the register's tax snapshot); MOD-OAT +0.40 · when I ring 2 x LATTE-REG with MOD-OAT on one and 1 x CROISSANT, takeaway, and the customer pays 10.00 cash · then receipt LON-SOHO-R1-0413-0057: lines 3.60, 4.00, 2.40, gross 10.00, net 8.33, VAT 1.67 (VAT computed per tax code on the receipt total including tax, rounded once half up: 10.00 x 20/120 = 1.67), cash tendered 10.00, change 0.00; the price comes from product's price list as of the business date, never typed; a price override needs pos:override:approve from another person; the receipt is signed by the shop's fiscal capability before it prints (POS-24); it is final once printed
Barista / cashier · screen: Till · reference: not built
Usually different per customer: eat-in or takeaway changes the VAT rate for food in Germany, France and Austria (not for UK hot drinks)
POS-09As a barista, I want to split one bill across cash, card and a gift voucher, so that a group can pay however they like.
Given a receipt of 23.80 GBP; voucher GV-UK-000812 with balance 15.00; the card terminal of R1 online · when the customer pays 15.00 by voucher, 5.00 cash and the rest by card, adding a 1.00 tip on the card · then three payment lines keyed (receipt_id, pay_no): voucher 15.00 (the voucher claimed to 0.00), cash 5.00, card 3.80 plus tip 1.00 = 4.80 authorised on the terminal with idempotency key <receipt_id>:3; the receipt finalises only when the payment lines sum exactly to the gross (23.80) and every card line is authorised; a declined card leaves the receipt open with the other lines intact; a terminal timeout leaves the line pending and the register asks the terminal for the outcome by its key before it offers to try again, so a card is never charged twice
Barista / cashier · screen: Till · reference: not built
POS-10As a barista, I want to give a discount within what my role allows, and ask the shift lead for more, so that a complaint is settled at the counter without anyone giving the shop away.
Given discount limits: cashier 10%, shift_lead 25%, retail_ops 100%; staff discount 50% for a staff member's own drink (reason STAFF, staff PIN required) · when I give 10% on a 3.60 latte (reason COMPLAINT), then try 30%, and then ring a staff drink for myself · then the 10% line is 3.24 with discount 0.36 recorded (discount_pct 10, a percentage per shared.yaml units); 30% is refused and offers an override; the override must come from someone whose limit covers 30% and who is not me (email AND sub); my own staff drink needs another staff member to enter the STAFF discount, never me; revenue is posted net of the discount and the discount is reported by reason
Barista / cashier · screen: Till · reference: not built
POS-11As a barista, I want to refund against the original receipt, so that the customer gets back what they paid, the way they paid it, and nothing is refunded twice.
Given receipt LON-SOHO-R1-0413-0057 (2 x LATTE-REG 3.60 and 4.00, 1 x CROISSANT 2.40, cash 10.00); cash_refund_limit 20.00 · when the next day at LON-SOHO I scan its receipt code and refund the oat latte (4.00) in cash; then a colleague tries to refund the same oat latte again · then refund receipt LON-SOHO-R1-0414-0003 of kind refund, naming original receipt and line 2, gross -4.00, VAT -0.67 with the original's tax code and rate (v2: the till copies the original line's frozen tax code and rate, so it refunds offline; at sync the refund goes to tax POST /documents/compute with pinned_from = the original's document_ref like every receipt (POS-28), and tax must answer the same code and rate, a different answer quarantining the refund for the accountant; a rate change since the sale never changes the refund); the refundable quantity is claimed per original line (claim key refund:<original receipt_id>:<line_no>:<claim_no>), so the second refund is refused (nothing left to refund); a card sale is refunded to the card through the terminal as a referenced refund; a cash refund above the limit needs a shift lead; a drink is not restocked (refund_restock false for category hot_drink), a packaged bag of beans is returned to stock
Barista / cashier · screen: Till · reference: not built
POS-12As a barista, I want to keep selling when the shop's internet drops, so that the queue never stops for a router.
Given register LON-SOHO-R2 offline from 10:02 to 11:47 on 2026-11-14; its tax snapshot and price list snapshot dated 2026-11-14; offline_card_mode terminal (the terminal's own store-and-forward); voucher_offline_limit 0.00 · when I ring 38 receipts R2-0388-0117 to 0154 offline; a customer offers a gift voucher; the register comes back and syncs, and the sync is sent again by a flaky retry · then the 38 receipts are numbered and signed on the register (fiscal capability in its offline mode, POS-24) and printed; the voucher is refused offline ("vouchers need the till online"); the sync creates 38 receipts; the repeat creates none (same receipt_id, same content digest answers 200 replay); a receipt arriving with a known receipt_id and a different digest is quarantined with both versions kept and is never a second sale (409 receipt_conflict, the accountant decides, POS-22); stock, VAT and the journal follow from pending rows after the sync commits
Barista / cashier · screen: Till · reference: not built
POS-13As a barista, I want to sell a gift voucher and redeem one, so that a voucher behaves like money and the books show what we still owe.
Given voucher policy UK: multi-purpose (VAT at redemption), validity 24 months, breakage recognised by the accountant (IFRS 15 B46) · when I sell voucher GV-UK-000813 for 25.00 by card, and later a customer redeems 9.20 of it on a receipt of 9.20 · then the sale is a receipt line of kind voucher_sale, outside the scope of VAT for a multi-purpose voucher, posting 25.00 to purpose voucher_liability; the redemption is a payment line of method voucher 9.20 that claims the voucher's balance (claim key voucher:<voucher_code>:<claim_no>, operation redeem) leaving 15.80; the receipt's VAT is computed on the goods as usual; a redemption above the balance or on an expired voucher is refused; a single-purpose voucher profile (VAT at issue) is a config row, not a code path
Barista / cashier · screen: Till · reference: not built
Usually different per customer: single- or multi-purpose vouchers per country; validity; whether breakage is recognised
POS-14As a barista, I want a named customer (a company) to get a full VAT invoice for their receipt, so that they can reclaim the VAT and we never create partners for walk-in customers.
Given business partner 50211 (a design studio, UK VAT GB123456789) exists in business-partner; receipt LON-SOHO-R1-0413-0090 of 312.00 for a catered meeting · when I attach partner 50211 to the receipt before payment · then the receipt carries bp_id 50211 and prints as a full VAT invoice with the partner's name, address and VAT number read from GET /partners/{bp_id}; a receipt without a partner is a simplified invoice (allowed up to 250.00 GBP in the UK, VAT Notice 700 s. 16.7; 100.00 EUR where the member state uses Directive 2006/112/EC art. 238); above the limit a receipt with no partner prints with a warning to take the customer's details; pos never creates a partner
Barista / cashier · screen: Till · reference: not built
POS-15As retail operations, I want each drink's recipe (beans, milk, cup, lid) written once, so that selling a latte takes the right stock out of the shop.
Given manufacturing not installed; products BEANS-HOUSE (base unit KGM, lot-tracked), MILK-WHOLE (LTR), MILK-OAT (LTR), CUP-12OZ (C62), LID-12OZ (C62) · when I write recipe LATTE-REG v1 from 2026-11-01: 0.018 KGM BEANS-HOUSE, 0.250 LTR MILK-WHOLE, 1 C62 CUP-12OZ, 1 C62 LID-12OZ, and MOD-OAT replacing MILK-WHOLE with MILK-OAT 0.250 LTR · then the recipe is a dated version (recipe_id LATTE-REG, version 1, valid_from 2026-11-01, after today); each quantity is in the component's issue unit and converts exactly to its base unit (product GET /products/{product_id}/convert), or is refused; a component that is not stocked is refused; when manufacturing is installed this screen shows its bill of materials of usage sale read-only and the recipe source setting is manufacturing (POS-31)
Retail operations / area manager · screen: Recipes · reference: not built
POS-17As the shift lead, I want the Z report of each session and of the shop's day, so that what the tills took, by payment and by tax, is on one page I can sign.
Given session LON-SOHO-R1-0413 closed: 214 receipts, sales gross 1,290.00, refunds 3.60, net gross 1,286.40, net 1,072.00, VAT S 214.40; tenders cash 412.80 net, card 851.60, voucher 22.00; card tips 38.50; discounts 18.40 (COMPLAINT 3.60, STAFF 14.80); cash difference -6.50 · when I print the Z report · then Z report LON-SOHO-R1-Z0413 numbered gapless per register, with the counts and totals above, receipt numbers first and last (0001 to 0214, no gap or the claimed gap named), grand totals since the register started (needed by NF525 and RKSV), and the fiscal profile's own fields; printing it twice prints the same report marked copy; it is derived from the session's rows only, so a receipt in another session, register or shop never changes it
Shift lead / shop manager · screen: Shop day · reference: not built
POS-18As the retail accountant, I want each shop's day checked before it posts, so that a tax mismatch or a missing session is caught before it reaches the ledger.
Given LON-SOHO 2026-11-14: sessions R1-0413 closed and R2-0388 force-closed; every receipt's VAT recomputed by tax at sync; one receipt's printed VAT 0.01 off tax's answer · when I open the day · then the readiness list {gate, met, reason, fix}: all_sessions_closed met; differences_approved met; tax_agrees not met ("receipt R2-0388-0131: printed 0.83, tax 0.84"); with auto_post on and every gate met the day posts on its own (POS-20); otherwise I accept the printed amount (the receipt is the legal document) with a reason and the difference posts to purpose tax_rounding, or I hold the day; a day is reviewed by an accountant, never by the shift lead who approved its differences
Retail accountant · screen: Shop day · reference: not built
POS-19As the shift lead, I want to prepare the cash bag for the bank from the safe, so that the bank's credit matches a bag we can name.
Given LON-SOHO safe holds 600.00 from safe drops on 2026-11-13 and 2026-11-14; house bank account BARC-SHOP-UK (payments, purpose receive) · when I seal bag B-00451 with 600.00 (by denomination) and the courier collects it on 2026-11-15 · then a cash deposit keyed dep:pos:LON-SOHO:B-00451 for 600.00 GBP, moving cash in safe to cash in transit in the next day journal, is handed to payments as an expected deposit batch (POS-26); when the bank credit arrives payments matches it and clears cash in transit; a bag can be sealed once; the amount is bounded (NUMERIC(18,2), positive) and cannot exceed what the safe holds
Shift lead / shop manager · screen: Shop day · reference: not built
POS-25As the retail accountant, I want the fiscal export for a tax audit (DSFinV-K in Germany, the NF525 archive in France, the RKSV DEP in Austria), so that an inspector gets the file the law names.
Given BER-MITTE receipts for 2026-01-01 to 2026-12-31 · when I request the DSFinV-K export for BER-MITTE for 2026 · then the export is produced by the fiscal capability from pos's receipts and fiscal_json, stored as a DataK3 object raw/pos/fiscal/BER-MITTE/2026/dsfinvk.zip with its digest, and listed with who asked and when; asking again for the same period returns the same digest unless a supplement arrived, which is named
Retail accountant · screen: Reports · reference: not built
POS-33As a barista, I want to add a stamp to a customer's loyalty card and redeem a free drink after nine, so that regulars come back, without the till knowing how the programme works.
Given the loyalty extension installed with programme STAMP-9 (one stamp per hot drink, the tenth free); card LC-0045 holds 9 stamps · when I scan LC-0045 on a receipt with one LATTE-REG · then the extension answers a 100% line discount with reason LOYALTY on the latte and pos records it like any discount (revenue net, IFRS 15: the free drink is a material right whose value was deferred by the extension when it issued the stamps); the extension is told of the finalised receipt only after it commits, from a pending row; with no extension installed, scanning a card does nothing and the till works as before
Barista / cashier · screen: Till · reference: not built
Usually different per customer: whether to defer revenue for stamps (IFRS 15 B39-B43) or treat them as immaterial
POS-34As the owner moving off Odoo, I want the closed sessions and their orders carried and reconciled per shop and day, so that I can sign that the history is complete.
Given Odoo 17 point_of_sale with pos.config LON-SOHO, 2025 and 2026 sessions closed, gl's migration signed · when the migration loads, reconciles and I sign · then every closed pos.session becomes a closed session with its receipts (read-only history, migrated receipt_id odoo:<db>:pos.order:<id>), the day totals per shop and date equal Odoo's to the penny, and open sessions are refused (close them in Odoo first); I sign only when every check is equal or explained
The owner (or whoever the owner names) · screen: Migration · reference: not built
POS-35As the owner, I want the controls on the people who handle cash held by me, so that a shift lead cannot raise their own limits or switch off the blind close.
Given difference_threshold 5.00, cash_refund_limit 20.00, blind_close on, discount limits per role · when a shift lead tries to raise difference_threshold to 50.00; I change it to 10.00 from 2026-12-01 · then the shift lead is refused (pos:settings:controls); my change is a dated row starting after today; a session counted on 2026-11-30 uses 5.00
The owner (or whoever the owner names) · screen: Settings · reference: not built
Things that happen on their own
POS-16after a receipt (or a synced batch) commitsThe system takes the recipe's components out of the shop's stock, receipt line by receipt line, so that the back room's stock follows what was sold.
Given receipt LON-SOHO-R1-0413-0057 committed: LATTE-REG x1, LATTE-REG+MOD-OAT x1, CROISSANT x1 (CROISSANT is stocked itself, no recipe) · when the outbox dispatcher runs, twice · then one consumption request per receipt to inventory with lines BEANS-HOUSE 0.036 KGM, MILK-WHOLE 0.250 LTR, MILK-OAT 0.250 LTR, CUP-12OZ 2, LID-12OZ 2, CROISSANT 1, each with move_ref pos:<receipt_id>:<line_no>:<component_no> from location LON-SOHO/BAR; the recipe version used is frozen on the receipt line, so a later recipe change never changes a past sale's consumption; the second dispatch is a replay (inventory answers 200 for a known move_ref); stock that would go negative is allowed at a bar location by inventory's own setting, and is then reported, never blocking a sale
· reference: not built
POS-20when the last session of a shop's business date closes and the day's gates are met (or the accountant posts it)The system posts one summary journal for the shop's day, so that the ledger has the day's revenue, VAT, tenders, tips and cash differences without a line per coffee.
Given LON-SOHO 2026-11-14 ready (the figures of POS-17; paid-out 12.00 MILK; safe drop 200.00) · when the day posts, and the post is retried after a timeout · then gl POST /journal-entry/journals with journal_id derived_id("pos:LON-SOHO:2026-11-14", "day_close"), source_module pos, company UK01, journal_date 2026-11-14: debit pos_cash_in_till 412.80, card_clearing 890.10 (851.60 + tips 38.50), voucher_liability 22.00, cash_over_short 6.50, shop_supplies 12.00, pos_cash_in_safe 200.00; credit revenue 1,072.00 (one line per revenue purpose and cost centre), VAT S 214.40 (purpose tax with tax_code S), tips_payable 38.50, pos_cash_in_till 6.50 + 12.00 + 200.00; the journal balances exactly (1,543.40 each side); one line per (purpose, tax code, cost centre), never per receipt; the retry answers gl's replay; a closed gl period refuses it (409 period_open) and the day waits as post_failed with the reason, never posting into the next period silently
· reference: not built
POS-21when a receipt or a correction arrives for a shop day already postedThe system marks the day stale and posts a supplement for the difference, so that a late receipt is in the books without rewriting what was posted.
Given LON-SOHO 2026-11-14 posted; on 2026-11-15 at 09:10 register R2 syncs receipts 0155 to 0161 (gross 41.20, cash 18.00, card 23.20) · when the sync commits · then the day shows stale with the supplement pending; the supplement journal is source_document "pos:LON-SOHO:2026-11-14:supplement:1", journal_id derived_id(source_document, "supplement") (v2: gl's one id rule), carrying only the difference (revenue 34.33, VAT 6.87, cash 18.00, card clearing 23.20), dated the day if its gl period is open, else the first open day with a memo naming the business date; the next late batch takes ...:supplement:2; the Z report of session R2-0388 is reissued as a new version, the first kept
· reference: not built
POS-24before a receipt is printed, and at session and day closeThe system signs each receipt through the shop's fiscal profile, so that every shop meets its country's till law and no country is hard-coded.
Given fiscal profiles: none (UK); de_kassensichv (TSE per register, DSFinV-K export); fr_nf525 (chained signature, perpetual grand total, daily, monthly and yearly closures); at_rksv (signature device, chained signature, turnover counter, QR code, start, month, year and null receipts) · when a receipt is finalised in BER-MITTE, PAR-01, VIE-01 and LON-SOHO · then the core calls the capability named by the profile (pos.fiscal.de_kassensichv | fr_nf525 | at_rksv; none does nothing) with the receipt's canonical content and stores its answer as fiscal_json on the receipt (DE: TSE serial, transaction number, signature counter, start and end time, signature; AT: the RKSV machine-readable code; FR: the chained signature and grand totals); a device outage follows the profile's rule (DE: sell and print "TSE ausgefallen", record the outage; AT: sell, mark "Sicherheitseinrichtung ausgefallen", issue a null receipt after recovery); the receipt's content never changes after signing
· reference: not built
Usually different per customer: the countries the chain trades in; which certified TSE or signature provider
Things that cross into other modules
POS-26when a cash bag is sealed (POS-19), and when the day posts card takingsCash bags and card settlements are handed to payments, which matches them to the bank statement and clears the accounts the day posted.
Given bag dep:pos:LON-SOHO:B-00451 of 600.00; card takings 890.10 for terminal batch LON-SOHO-R1-T-20261114 on 2026-11-14 · when the outbox dispatches them, and again after a retry · then payments receives an expected deposit batch (600.00, cash) and an expected card settlement (gross 890.10, the provider, the terminal batch reference); when the statement shows 600.00 and 876.75 (890.10 less fees 13.35), payments matches both, posts the fees (its PAY-24) and clears cash_in_transit and card_clearing; a retry is a replay on the batch and settlement refs; pos never writes pay_ tables and never posts the bank side
· owned by payments · reference: not built
POS-27when the stock consumption of a receipt is dispatched (POS-16)Stock leaves inventory through inventory's route, which owns the move, the lot and the cost.
Given a committed receipt with recipe components · when pos sends the consumption · then inventory records goods issues of purpose sale_consumption from the shop's consumption location, values them and posts the cost of sales itself; pos keeps the move ids it is given and never writes inv_ tables
· owned by inventory · reference: not built
POS-28at sync of each receipt, and for each refundTax recomputes the VAT of every receipt, so that the day's VAT is tax's answer, and a refund uses the original's code and rate.
Given a receipt with lines, categories and the shop's country · when pos calls tax · then tax answers per line tax_code, rate_pct, net, vat; pos stores the answer as its copy and compares it with what was printed (POS-18); a refund line is sent with pinned_from the original receipt's document_ref
· owned by tax · reference: not built
POS-29when a day or a supplement postsThe day's journal posts to gl.
Given a ready shop day · when pos posts · then gl posts it, numbers it and answers replay for the same body; pos stores the journal id on the day
· owned by gl · reference: not built
POS-30when a register opens a session, and on readThe register's catalogue (products, prices, tax categories) and the tax rates it sells with offline come from product and tax, as dated snapshots.
Given LON-SOHO on business date 2026-11-14 · when R1 opens a session · then pos builds the register snapshot from product (each product on the layout, its sales unit, tax category and price on the shop's price list for the business date) and tax (the rate per category for the shop's country on that date); the snapshot is versioned and its digest printed on the Z report; a price or rate dated tomorrow is in tomorrow's snapshot, never today's
· owned by product · reference: not built
POS-31when the recipe source is manufacturing and a receipt line needs its componentsThe recipe comes from manufacturing's bill of materials (usage sale) when manufacturing is installed.
Given manufacturing installed; BOM LATTE-REG usage sale version 2 valid from 2026-12-01 · when a latte is sold on 2026-12-02 · then pos explodes it through manufacturing's route for the business date and freezes the BOM id and version on the receipt line; manufacturing never calls pos; with manufacturing absent pos uses its own recipe (POS-15)
· owned by manufacturing · reference: not built
POS-32at session open and at PIN sign-inA cashier is a person employed on the business date, read from hr.
Given barista C leaves on 2026-11-30 (hr) · when barista C signs in on 2026-12-01 · then the PIN is refused ("not employed on 2026-12-01"); pos keeps only the PIN hash and the person_id, never a copy of the person
· owned by hr · reference: not built
How things move
session
open → counted → closed → force_closed → posted
- none → open by cashier · when no open session on the register; the fiscal device ready where the profile needs one; the cashier employed today (hr, when installed); the float counted · business date fixed (business_timezone and day_cutoff); register snapshot built (POS-30)
- open → open by cashier · when amount positive, NUMERIC(18,2); a paid-out above paid_out_limit approved by another person
- open → counted by cashier · when every receipt synced (the register's last number equals the server's) · difference = counted - expected; within the threshold it closes at once
- counted → closed by shift_lead · when the approver is not the counter (email AND sub) · needs reason
- open → force_closed by shift_lead · needs reason · the claimed gap of receipt numbers recorded; late receipts accepted into this session only
- closed / force_closed → posted by system · when the shop day posted (POS-20)
receipt
open → finalised → quarantined → voided
- none → open by cashier · when the session open; the product on the snapshot
- open → open by cashier · when a card line authorised; a voucher line claimed; amounts NUMERIC(18,2)
- open → voided by cashier · kept as a void record with its lines (fiscal law counts voids); card lines reversed on the terminal; v2: the record is the receipt in state voided (was to: none, which left the record no state)
- open → finalised by cashier · when payment lines sum exactly to the gross; the fiscal signature returned · receipt number claimed gapless per register; outbox rows for stock, tax, loyalty written in the same transaction
- none → quarantined by system · when a known receipt_id arrives with a different digest
- quarantined → finalised by accountant · needs reason · the accepted version is the receipt; the other kept as evidence; never two receipts
shop_day
open → ready → posted → stale → post_failed
- open → ready by system · when every session of the shop and date closed or force-closed; differences approved
- ready / post_failed → posted by system or accountant · when tax agrees or the accountant accepted the printed amounts; the gl period open · one summary journal (POS-20)
- ready → post_failed by system · gl's gate and reason kept
- posted → stale by system · supplement n+1 pending
- stale → posted by system · supplement journal for the difference only
cash_deposit
sealed → handed_over → matched
- none → sealed by shift_lead · when amount at most the safe's balance; bag number unused
- sealed → handed_over by system · payments' expected deposit batch (POS-26)
- handed_over → matched by system · when payments reports the batch matched
pos_migration_run
loaded → reconciled → signed → discarded
- none → loaded by system · when gl, product and tax migrations signed; no open pos.session · v2 (pattern §11, seemo's decided answer 4): staging rows only (pos_migration_row, keyed by the source id); nothing written to the ledger, balances or journals
- loaded → reconciled by system
- reconciled → signed by owner · when every check equal or explained · v2 (decided answer 4): the staged rows written through this module's normal use cases, idempotent on the source key; the first write to the ledger; a signed run is later reversed by reversing entries, never deleted
- loaded / reconciled → discarded by owner · needs reason · v2 (decided answer 4): the run's staging rows deleted, nothing else (no ledger row was written)
What it keeps
| Thing | Meaning | Identified by | Shared? |
|---|---|---|---|
| shop | a place that sells, belonging to one company and drawing stock from one warehouse | shop_id VARCHAR (the customer's code, LON-SOHO) | SHARED, sole writer (payments and reports name shop_id) |
| register | one till in a shop, with its own receipt series, card terminal and fiscal device | shop_idregister_id | SHARED, sole writer |
| session | one cashier's time on one register between opening the drawer and counting it | session_id = "<shop_id>-<register_id>-<session_no>" | module-owned |
| receipt | one sale or refund as printed for the customer; the legal document | receipt_id = "<session_id>-<receipt_no>" (receipt_no gapless per register; migrated odoo:<db>:pos.order:<id>) | module-owned |
| receipt line | one product sold or refunded, with the price, discount, tax and the recipe it consumed | receipt_idline_no | module-owned |
| payment line | one tender on a receipt (cash, card, voucher), with its tip | receipt_idpay_no | module-owned |
| refund claim | the row two refunds race for, so a line is never refunded past what was sold | original_receipt_idline_noclaim_no | module-owned (append-only; a plain INSERT, the loser gets 23505, re-reads and is refused or retries) |
| voucher | a gift voucher; money we owe until it is spent or expires | voucher_code VARCHAR (GV-UK-000812) | module-owned |
| voucher claim | one redemption, reload or refund-to-voucher of a voucher, in order | voucher_codeclaim_no | module-owned (append-only claim rows; the operation is part of what is claimed) |
| cash move | cash put in or taken out of a drawer other than by a sale | cash_move_id = "<session_id>-cm<seq>" | module-owned |
| cash deposit | a sealed bag of cash on its way to the bank | deposit_ref = "dep:pos:<shop_id>:<bag_no>" | module-owned |
| shop day | a shop's trading for one business date, as posted to the ledger | shop_idbusiness_date | module-owned |
| recipe | what one product consumes when sold, when manufacturing is not installed | product_idversion | module-owned; read-only while recipe_source is manufacturing |
| layout | the buttons a register shows, per shop group, versioned | layout_idversion | module-owned |
| register snapshot | the dated catalogue, prices and tax rates a register sells with, offline or not | shop_idbusiness_datesnapshot_no | module-owned (a copy of product's and tax's answers on a date, never edited) |
| outbox | a side effect waiting to go to a neighbour after the local commit | targetref | module-owned |
| settings | the controls and the defaults, dated | keyvalid_from | module-owned |
A till that keeps its own copy of the price list, the VAT rates or the item master is how a shop sells at last month's price and the books disagree with the shelf. pos keeps only dated snapshots of product's and tax's answers, each with its digest on the Z report.
What runs on its own
| Story | When | What |
|---|---|---|
| POS-16 | after each receipt or sync batch commits | dispatch pending outbox rows (stock consumption, tax recompute, loyalty, payments hand-overs) |
| POS-20 | when a shop day is ready | post the day's summary journal |
| POS-21 | when a receipt arrives for a posted day | mark the day stale, post supplement n+1 |
| POS-24 | before a receipt prints; at session and day close | fiscal signature through the shop's profile capability |
Questions that shape your version
Read these out and let the customer correct one — people rarely recall a policy on demand and can always react to one. Standard is a named authority you can look up and hold us to. Commonly seen is exactly that: arrangements we have met, with no survey behind them. A customer doing none of them is not doing it wrong.
- Are tips your staff's money (passed on in full) or the shop's revenue?
Standard UK Employment (Allocation of Tips) Act 2023 (in force 2024-10-01): employers pass all tips to workers; Germany s. 3 Nr. 51 EStG (voluntary tips to employees tax-free)
- coffee chain uk
- liability, pooled per shop and shift, paid through payroll
- owner operated cafe
- liability, shared in cash at the end of the week
- warning
- treating tips as revenue in the UK breaches the 2023 Act; the default is liability
- In which countries do you have shops, and which certified TSE or signature provider do you use there?
Standard DE KassenSichV with BSI TR-03153 TSE and DSFinV-K; FR CGI art. 286-I-3 bis (NF525 certification); AT RKSV and s. 131b BAO
- Do your shops in different countries run on their own local time?
- Do you sell food to eat in and to take away at different prices or VAT rates?
Standard Directive 2006/112/EC art. 98 and Annex III (reduced rates); DE UStG s. 12; FR CGI art. 278-0 bis and 279
- Are your gift vouchers spent only on one kind of thing in one country (single-purpose) or on anything (multi-purpose)?
Standard Council Directive (EU) 2016/1065; UK VATA 1994 Schedule 10A
- How big a cash difference can a barista close on their own, and how big a refund in cash?
- coffee chain
- 5.00 difference, 20.00 cash refund
- single cafe
- 2.00 difference, any refund by the owner
- Do you run a loyalty card, and do you want its free drinks deferred as revenue?
Standard IFRS 15 B39-B43 (customer options for additional goods: material rights)
What you can change yourself
These are settings, not code: someone in your team changes them on a screen, without a developer and without a release.
- how cash is handled; every row dated (valid_from after today; the first row of a key may start today)
- each AI step's mode (ai_steps: off | suggest)
- the largest discount each role may give, and the reasons (COMPLAINT, STAFF, LOYALTY)
- paid-out and paid-in reasons and the purpose each posts to
- per country: the fiscal capability, its outage rule, the receipt fields it prints, the simplified-invoice limit
- per company: single- or multi-purpose, validity months, breakage
- per product category: restock on refund, eat-in question shown
- the shops and their company, warehouse, price list and fiscal profile
Where the platform limits what we can promise
No read-your-writes inside an open transaction. a receipt and its outbox rows commit in one transaction; the day's totals are derived in a second transaction after the last session commits
A plain INSERT of a committed key is rejected (23505). receipt numbers, refund claims and voucher claims are plain INSERTs, so the loser of a race is refused and re-reads; a sync replay is detected by reading the receipt first
ON CONFLICT DO UPDATE SET accepts only EXCLUDED.<col>. the outbox status and the day's status upsert with every value in VALUES
For builders
- Module spec — this page, for agents
- The lifecycle and the design template
Code
Public repositories, anonymous clone, one release tag each. Read README.md and AGENTS.md first.
- erp-brick-pos (brick, v0.2.0)
git clone --depth 1 --branch v0.2.0 https://git.dodil.io/dodil/erp-brick-pos.git
ssh:[email protected]:dodil/erp-brick-pos.git - brick-business-partner (brick, v0.4.0)
git clone --depth 1 --branch v0.4.0 https://git.dodil.io/dodil/erp-brick-business-partner.git
ssh:[email protected]:dodil/erp-brick-business-partner.git - erp-platform (platform, v0.9.13)
git clone --depth 1 --branch v0.9.13 https://git.dodil.io/dodil/erp-platform.git
ssh:[email protected]:dodil/erp-platform.git
Known gaps in the reference
- nothing is built; this is version 1 of the spec, unsigned
- the needs above are not in their modules' specs yet; each is a change request there
- the register client (offline store, terminal and fiscal device drivers) is a separate deliverable from the brick
- restaurant table service (tables, courses, split by seat) is not specified; a coffee chain sells at the counter
- APQC ids are null until verified against PCF v8.0