feat: tabs in the books (platform-v2 step 6.13c, KI-018; owner 2026-11-19: every movement recorded)
- a line on a customer's tab is sold, not paid: services/sales.py counts tabbed lines as sold (on_tab apart) - TabEntry / TabPayment record the business day and the shift of whoever did it (Alembic 0037, rows backfilled with their day); services/tab_books.py: per shift and per day, on tabs and tab money received (cash / card / other, who, in a shift or not) - shift: tab cash goes in the drawer (net_to_deliver, the counted difference, total_collected), tab card in the card total; items paid other ways (transfer, on the house) are recorded apart and no longer counted as drawer cash; 'activity': orders, items made / paid / put on a tab with values - day summary: per person put on tabs and tab money received, every tab payment with who took it, the part taken outside shifts (in no drawer); the day's money: paid, on tabs, sold, paid on tabs, money taken (it used to subtract tabs from paid sales) - Today: on tabs, paid on tabs; Staff -> Cash handover: paid on tabs; the shift dialog: made / paid / on a tab / paid on tabs - fix: a line put on a tab was charged without its price change (a discount) - tests: test_tab_books.py (the done-when), overview unit, e2e manager.mjs (the day records the tab payments; Today shows them) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1269,7 +1269,15 @@
|
||||
"unpaid": "Open",
|
||||
"cancelled": "Cancelled",
|
||||
"anomaly": "Problem"
|
||||
}
|
||||
},
|
||||
"tabCash": "cash paid on tabs",
|
||||
"refunded": "cash refunded",
|
||||
"tabPayments": "Paid on tabs",
|
||||
"tabPaymentsSub": "cash {{cash}} · card {{card}}",
|
||||
"made_one": "Made · {{count}} order",
|
||||
"made_other": "Made · {{count}} orders",
|
||||
"paidItems": "Paid",
|
||||
"onTab": "Put on a tab"
|
||||
},
|
||||
"cash": {
|
||||
"even": "Balanced",
|
||||
@@ -1431,10 +1439,10 @@
|
||||
"closed": "Closed",
|
||||
"stillOpen": "Day running",
|
||||
"sales": "Revenue",
|
||||
"salesTotal": "Total sales",
|
||||
"onTabs": "On tabs (not taken yet)",
|
||||
"onTabsTip": "Sales put on customers' tabs: they count as sales, the money comes when the tab is paid.",
|
||||
"taken": "Net taken",
|
||||
"salesTotal": "Sold (paid + on tabs)",
|
||||
"onTabs": "On customers' tabs (sold, not paid)",
|
||||
"onTabsTip": "Lines put on customers' tabs today: they were sold, the money comes when the tab is paid. They are in no drawer.",
|
||||
"taken": "Money taken (paid + paid on tabs)",
|
||||
"cogs": "Cost of goods sold",
|
||||
"cogsKnown": "Known cost",
|
||||
"cogsTip": "What the sold items cost the venue, from the costs entered on the products (as they were at the sale).",
|
||||
@@ -1511,7 +1519,17 @@
|
||||
"unpaidWarning": "Some items are unpaid. If you force the close, the unpaid amounts won't be in the reports.",
|
||||
"autoClose": "Some tables are open with nothing left to pay. They will be closed.",
|
||||
"forceClose": "Force the close",
|
||||
"closeNow": "Close the day"
|
||||
"closeNow": "Close the day",
|
||||
"paidSales": "Paid",
|
||||
"tabReceived": "Paid on tabs",
|
||||
"tabReceivedSub": "cash {{cash}} · card {{card}}",
|
||||
"tabReceivedTip": "Money customers paid on their tabs today, for things sold today or before. Cash taken by someone on a shift is in their drawer.",
|
||||
"tabPayments": "Payments on tabs",
|
||||
"tabPayment": "{{customer}}: {{name}}, {{method}}",
|
||||
"noShift": "no shift: in no drawer",
|
||||
"putOnTab": "Put on tabs",
|
||||
"tabOutsideShifts": "Paid on tabs to someone with no shift",
|
||||
"tabOutsideShiftsTip": "Recorded as received by that person (e.g. the owner); it isn't in any shift's drawer, so it isn't in the drawer's expected amount."
|
||||
}
|
||||
},
|
||||
"products": {
|
||||
@@ -2743,7 +2761,7 @@
|
||||
"long": "Pick at most a year."
|
||||
},
|
||||
"revenue": "Revenue",
|
||||
"revenueTip": "Products sold, minus what was refunded. Delivery fees are counted apart.",
|
||||
"revenueTip": "Products sold (paid, not paid yet or put on a customer's tab), minus what was refunded. Delivery fees are counted apart.",
|
||||
"fees": "Delivery fees",
|
||||
"feesTip": "Money taken for delivery: not a product, so it's not in the revenue.",
|
||||
"refunded": "Refunded",
|
||||
@@ -2786,7 +2804,12 @@
|
||||
"cancelSub": "{{orders}} orders / {{items}} items",
|
||||
"noCancels": "none",
|
||||
"orders_one": "{{count}} order today",
|
||||
"orders_other": "{{count}} orders today"
|
||||
"orders_other": "{{count}} orders today",
|
||||
"onTab": "On customers' tabs",
|
||||
"onTabTip": "The part of today's sales put on customers' tabs: sold, not paid yet.",
|
||||
"tabReceived": "Paid on tabs",
|
||||
"tabReceivedTip": "Money customers paid on their tabs today (for things sold today or before).",
|
||||
"tabReceivedSub": "cash {{cash}} · card {{card}}"
|
||||
},
|
||||
"back": "Back",
|
||||
"save": "Save",
|
||||
@@ -2931,18 +2954,13 @@
|
||||
},
|
||||
"staff": {
|
||||
"title": "Staff",
|
||||
"tabs": {
|
||||
"shifts": "Shifts",
|
||||
"cash": "Cash handover",
|
||||
"people": "Sales by person"
|
||||
},
|
||||
"shiftsCount_one": "{{count}} shift",
|
||||
"shiftsCount_other": "{{count}} shifts",
|
||||
"payTotal": "Pay for these shifts: {{amount}}",
|
||||
"pay": "Pay",
|
||||
"payTip": "Hours × the hourly pay at the time of the shift.",
|
||||
"handOver": "To hand over",
|
||||
"handOverTip": "Starting cash + cash taken − cash refunded: what should be in the drawer.",
|
||||
"handOverTip": "Starting cash + cash taken (for items and on tabs) − cash refunded: what should be in the drawer.",
|
||||
"difference": "Difference",
|
||||
"differenceTip": "What was counted at the end minus what should have been there (− short, + over).",
|
||||
"shift": "Shift",
|
||||
@@ -2959,7 +2977,15 @@
|
||||
"perHour": "Per hour",
|
||||
"ranking": "Who sold most",
|
||||
"people_one": "{{count}} person",
|
||||
"people_other": "{{count}} people"
|
||||
"people_other": "{{count}} people",
|
||||
"tabMoney": "Paid on tabs",
|
||||
"tabMoneyTip": "Money this shift received on customers' tabs. The cash part is in the drawer.",
|
||||
"tabMoneySplit": "cash {{cash}} · card {{card}}",
|
||||
"tabs": {
|
||||
"shifts": "Shifts",
|
||||
"cash": "Cash handover",
|
||||
"people": "Sales by person"
|
||||
}
|
||||
},
|
||||
"misc": {
|
||||
"title": "Cancellations and discounts",
|
||||
|
||||
Reference in New Issue
Block a user