Files
bonaminandClaude Opus 5.5 3eeafb565a feat(backend,waiter,terminal,manager): split the bill by amount
Owner 2026-11-23 (plan 6F.6). Venue setting payments.split_amount (off | two_equal | two_custom |
multiple_equal, each level with the ones before; default off) and payments.split_max_parts (10);
key ordering.payments.split_amount (everyone who takes payments; Alembic 0050 grants it).
POST /api/orders/{id}/split-bills settles the chosen unpaid lines (status 'split': sold, no shift,
no payment method) and adds part lines (system product split_part, "Split bill 1/3", printed and
served; equal parts with the remainder on the last, or two parts with part 1 typed). Parts are paid
like any line (cash, card, tab). POST .../split-bills/{bill}/undo while no part is paid or tabbed.
Counting (services/sales.py): settled lines are the sales, parts never (a refunded part comes off
the settled lines by share); drawers and payment methods count the parts. Older reports use
split_bills.sold_filter / counts_as_sale. Locks: parts can't be cancelled, moved, combined or
re-priced; settled lines are no longer active; closing or cancelling an order with unpaid parts is
refused. Fiscal: one receipt with the settled lines when the last part is paid, with each method's
amount (txt driver: CD per card amount, then CR for cash).
Waiter: Pay -> "Split the amount" (pre-filled from the customers), the split bill above the lines
with Undo. Counter: "By amount" in the payment (quick sale split and paid at once, Q-4; a table's
lines split then paid). Manager: the pay dialog splits, the order shows its split bills, Settings ->
Operation card. Shared rules in @xenia/ordering/split.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 10:57:54 +02:00

630 lines
18 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"caller_id": {
"name": "Caller ID",
"description": "Incoming phone calls from the venue's phone system (Grandstream UCM).",
"permissions": {
"use": "See incoming calls"
}
},
"catalog": {
"name": "Catalogue",
"description": "Products, categories, options, tables and prep zones.",
"permissions": {
"menu": {
"manage": "Edit products, categories and prep zones"
},
"tables": {
"manage": "Edit tables and table groups"
}
}
},
"chat": {
"name": "Staff chat",
"description": "Staff chat and manager messages to staff.",
"permissions": {
"use": "Use staff chat",
"broadcast": "Send messages to all staff"
}
},
"connect_menu": {
"name": "QR menu",
"description": "The online QR menu, kept in sync with the catalogue.",
"permissions": {
"manage": "Manage the QR menu"
}
},
"connect_orders": {
"name": "Online orders",
"description": "Orders placed from the QR menu, brought in from the cloud.",
"permissions": {
"manage": "Accept and manage online orders",
"fees": "Set delivery areas and fees"
}
},
"connect_remote": {
"name": "Remote manager",
"description": "Live figures for the owner's remote manager app.",
"permissions": {
"manage": "Set up the remote manager app"
}
},
"core": {
"name": "Core",
"description": "Sign-in, staff, settings, license, system and live updates. Always on.",
"permissions": {
"dashboard": {
"access": "Open the manager dashboard"
},
"staff": {
"manage": "Add and edit staff, see who is signed in"
},
"settings": {
"manage": "Change venue settings"
},
"modules": {
"manage": "Turn apps, features and integrations on or off"
},
"devices": {
"manage": "Pair, rename, reassign and remove devices"
},
"system": {
"admin": "Support-only maintenance"
},
"scenes": {
"manage": "Make scenes (party mode…) and turn them on or off"
}
}
},
"crm": {
"name": "Customers",
"description": "Customer records.",
"permissions": {
"manage": "Add and edit customers"
}
},
"customer_display": {
"name": "Customer display",
"description": "A screen facing the customer at a counter POS: the sale, the total, the change, and an idle screen you design.",
"limits": {
"devices": "Customer displays"
},
"permissions": {
"manage": "Set up the customer display (idle screen, images)"
},
"config": {
"look": {
"label": "Idle screen",
"hint": "Which look it shows between sales (Settings → Customer display).",
"none": "The default look"
}
}
},
"expenses": {
"name": "Expenses",
"description": "Expenses, payments and the supplier book.",
"permissions": {
"manage": "Record expenses and suppliers"
}
},
"fiscal": {
"name": "Fiscal device",
"description": "Sends receipts to the fiscal device (ΦΗΜ) through its folder bridge.",
"permissions": {
"manage": "Set up the fiscal device"
}
},
"history": {
"name": "Order history",
"description": "Past orders and business-day summaries (read only). Free, with a short history.",
"limits": {
"history_days": "Days of history you can view"
},
"permissions": {
"view": "See past orders and day summaries"
}
},
"inventory": {
"name": "Inventory",
"description": "Waste log and product costs.",
"permissions": {
"manage": "Log waste and costs"
}
},
"kds": {
"name": "Kitchen display",
"description": "Screens in the kitchen or bar showing the orders to prepare.",
"limits": {
"devices": "Kitchen screens"
},
"permissions": {
"access": "Use the kitchen display",
"bump": "Mark items ready"
},
"config": {
"prep_zone_id": {
"label": "Prep zone",
"hint": "The screen shows only the items of this zone.",
"none": "All zones"
},
"card_width": {
"label": "Card width",
"hint": "Width of each order card, in pixels (200–800)."
},
"font_scale": {
"label": "Text size",
"hint": "In percent: 100 is normal (60–200)."
},
"font_weight": {
"label": "Text weight",
"hint": "How bold product names are.",
"choices": {
"300": "Light",
"400": "Regular",
"500": "Medium",
"600": "Semibold",
"700": "Bold",
"800": "Extra bold"
}
},
"batch_mode": {
"label": "Repeat orders from one table",
"hint": "How a table's later rounds on the same order are shown.",
"choices": {
"merged": "One card, everything together",
"grouped": "One card, a divider per round",
"split": "A separate card per round"
}
},
"group_items": {
"label": "Item totals",
"hint": "A summary of the same items across all orders (to do and in progress).",
"choices": {
"off": "Off",
"floating": "Floating panel",
"right_sidebar": "Panel on the right",
"left_sidebar": "Panel on the left",
"topbar_button": "Button in the top bar"
}
},
"group_by_course": {
"label": "Group items by course",
"hint": "Items without a course come last."
},
"combine_modifiers": {
"label": "Combine changes of the same kind",
"hint": "For example \"no tomato · sauce\" on one line."
},
"categories_as_filters": {
"label": "Categories as filters",
"hint": "On: several categories at once. Off: one category at a time."
},
"age_warning_minutes": {
"label": "Warning after (minutes)",
"hint": "The card turns to the warning colour."
},
"age_late_minutes": {
"label": "Late after (minutes)",
"hint": "The card turns to the late colour. More than the warning."
},
"age_flash_minutes": {
"label": "Flash after (minutes)",
"hint": "The card header flashes. More than late."
},
"flash_late": {
"label": "Flash late orders"
},
"colour_fresh": {
"label": "Colour: new"
},
"colour_warning": {
"label": "Colour: warning"
},
"colour_late": {
"label": "Colour: late"
},
"colour_done": {
"label": "Colour: done"
},
"triple_state": {
"label": "Three steps per order",
"hint": "To do → In progress → Done. Off: In progress is skipped."
},
"sound": {
"label": "Sound for new orders"
},
"notify_order_complete": {
"label": "Tell the waiter when an order is done"
},
"notify_item_complete": {
"label": "Tell the waiter when an item is done",
"hint": "Before the whole order is done."
},
"refresh_seconds": {
"label": "Check for orders every",
"hint": "In case a live update is missed.",
"choices": {
"10": "10 seconds",
"15": "15 seconds",
"20": "20 seconds",
"30": "30 seconds",
"45": "45 seconds",
"60": "1 minute",
"90": "90 seconds",
"120": "2 minutes"
}
},
"auto_sign_out_minutes": {
"label": "Sign out after",
"hint": "Back to the sign-in screen when nobody has used the screen for this long.",
"choices": {
"0": "Never",
"2": "2 minutes",
"5": "5 minutes",
"10": "10 minutes",
"30": "30 minutes",
"60": "1 hour"
}
}
},
"config_groups": {
"zone": "Prep zone",
"board": "Board",
"age": "Waiting time",
"behaviour": "Behaviour"
}
},
"menu_tablet": {
"name": "Menu tablet",
"description": "The venue's menu on a tablet: a quick price check for staff and a menu for guests.",
"limits": {
"devices": "Menu tablets"
},
"permissions": {
"manage": "Set up menu tablets"
},
"config_groups": {
"look": "Look",
"menu": "Menu",
"use": "Use",
"table": "At a table",
"order": "Ordering at the table"
},
"config": {
"view": {
"label": "View",
"hint": "Compact: a dense list. Expanded: with a small photo and the description. Full: big cards.",
"choices": {
"compact": "Compact",
"expanded": "Expanded",
"full": "Full"
}
},
"photos": {
"label": "Photos"
},
"descriptions": {
"label": "Descriptions"
},
"group": {
"label": "Group by category",
"hint": "Off: one list of every product (A to Z)."
},
"theme": {
"label": "Colours",
"choices": {
"light": "Light",
"dark": "Dark"
}
},
"sales_point": {
"label": "Prices of",
"hint": "Whose prices it shows.",
"choices": {
"in_store": "In the shop",
"in_store_takeaway": "Takeaway at the counter",
"qr_table": "QR menu at the table",
"online_takeaway": "Online, takeaway",
"online_delivery": "Online, delivery",
"online_preorder": "Online, with a booking",
"none": "No prices"
}
},
"sold_out": {
"label": "Sold-out products",
"choices": {
"strike": "Crossed out",
"hide": "Hidden"
}
},
"category": {
"label": "Only this category",
"hint": "With its sub-categories.",
"none": "The whole menu"
},
"search": {
"label": "Search",
"hint": "A search box (handy for a quick price check)."
},
"languages": {
"label": "Languages",
"hint": "The tablet's own texts; product names are as in the menu.",
"choices": {
"both": "Greek and English (the guest picks)",
"el": "Greek",
"en": "English"
}
},
"idle_seconds": {
"label": "Back to the start after",
"hint": "Seconds without a touch.",
"choices": {
"0": "Never",
"30": "30 s",
"60": "1 min",
"120": "2 min",
"300": "5 min",
"600": "10 min"
}
},
"table": {
"label": "Table",
"hint": "The table this tablet sits on. Only then guests can call a waiter.",
"none": "Not at a table"
},
"call_waiter": {
"label": "Guests can call a waiter",
"hint": "A button that sends a message to the table's waiters (once a minute at most)."
},
"ordering": {
"label": "Guests can order",
"hint": "At a table only: a cart, the dishes' choices and \"Send\". The venue's rules are in Settings → Menu tablets."
},
"bill": {
"label": "Guests see the bill",
"hint": "What the table ordered so far and \"Ask for the bill\" (a message to the table's waiters)."
},
"order_confirm": {
"label": "Orders go",
"choices": {
"venue": "As the venue (Settings)",
"kitchen": "Straight to the kitchen",
"waiter": "To a waiter to confirm first"
}
},
"order_no_order": {
"label": "When the table has no open order",
"choices": {
"venue": "As the venue (Settings)",
"open": "The tablet opens it",
"refuse": "Ask a waiter to open it first"
}
},
"order_max_items": {
"label": "Most items in one order",
"choices": {
"-1": "As the venue (Settings)",
"5": "5",
"10": "10",
"15": "15",
"20": "20",
"30": "30",
"50": "50"
}
},
"order_max_of_one": {
"label": "Most of one dish in one order",
"choices": {
"-1": "As the venue (Settings)",
"1": "1",
"2": "2",
"3": "3",
"5": "5",
"10": "10",
"20": "20"
}
},
"order_min_seconds": {
"label": "Least time between two orders",
"choices": {
"-1": "As the venue (Settings)",
"0": "No wait",
"30": "30 s",
"60": "1 min",
"120": "2 min",
"300": "5 min",
"600": "10 min"
}
}
}
},
"notes": {
"name": "Notes",
"description": "Venue notes and to-dos.",
"permissions": {
"use": "Read and write notes and to-dos"
}
},
"ordering": {
"name": "Ordering",
"description": "Orders, payments, business day, shifts, cash and kitchen printing.",
"permissions": {
"orders": {
"open": "Open orders and add items",
"close": "Take payments and close orders",
"cancel": "Cancel items already sent"
},
"prices": {
"modify": "Change an item's price before it is sent",
"modify_sent": "Change the price of an item already sent or served",
"view_changes": "See prices changed by hand (who, when, why)"
},
"business_day": {
"manage": "Open and close the business day"
},
"refunds": "Refund payments from other shifts",
"payments": {
"revert": "Turn paid items back to unpaid",
"split_amount": "Split a bill by amount (equal parts or a ratio)"
},
"items": {
"change_quantity": "Change a sent line's quantity (no new ticket)"
}
}
},
"pos_counter": {
"name": "Counter POS",
"description": "A counter terminal for quick sales, tables, price checks and online orders.",
"limits": {
"devices": "Counter terminals"
},
"permissions": {
"access": "Use the counter POS"
},
"config": {
"default_order_type": {
"label": "New sales start as",
"hint": "Takeaway or eat in at the counter (no table).",
"choices": {
"takeaway": "Takeaway",
"here": "Eat in (no table)"
}
},
"start_category_id": {
"label": "Category shown first",
"hint": "The products the screen opens on.",
"none": "All products"
},
"receipt_printer_id": {
"label": "Receipt printer (cash drawer)",
"hint": "Its cash drawer opens on cash payments.",
"none": "No printer"
},
"auto_sign_out_minutes": {
"label": "Sign out after",
"hint": "Back to the sign-in screen when nobody has used the screen for this long.",
"choices": {
"0": "Never",
"2": "2 minutes",
"5": "5 minutes",
"10": "10 minutes",
"30": "30 minutes",
"60": "1 hour"
}
}
}
},
"pricing": {
"name": "Pricing",
"description": "Price groups, happy hours, modifiers, deals and waiter discounts.",
"permissions": {
"manage": "Set up price groups, modifiers and deals",
"discounts": {
"apply": "Give discounts",
"over_limit": "Give discounts beyond the per-waiter limits"
}
}
},
"reports": {
"name": "Reports",
"description": "Full sales, product, staff and printer reports, CSV export and printed reports.",
"limits": {
"history_days": "Days of history reports can cover"
},
"permissions": {
"view": "See reports"
}
},
"reservations": {
"name": "Reservations",
"description": "Table reservations.",
"permissions": {
"manage": "Add and edit reservations"
}
},
"signage": {
"name": "Digital signage",
"description": "Menus and promotions on TVs (coming soon).",
"limits": {
"devices": "Signage screens"
},
"permissions": {
"manage": "Edit signage content"
},
"config": {
"playlist": {
"label": "Playlist",
"hint": "What this screen plays (Signage).",
"none": "Nothing (a blank screen)"
},
"slide": {
"label": "Slide",
"hint": "Or a single slide from the Slides library, shown when no playlist is picked.",
"none": "None"
},
"orientation": {
"label": "Orientation",
"hint": "How the TV hangs: slides are built for this shape.",
"choices": {
"landscape": "Landscape (wide)",
"portrait": "Portrait (tall)"
}
},
"rotation": {
"label": "Turn the picture",
"hint": "For a TV mounted sideways that can't turn the picture itself.",
"choices": {
"0": "No",
"90": "90° right",
"180": "Upside down",
"270": "90° left"
}
},
"fit": {
"label": "Slides of another shape",
"hint": "Keep their shape (bands in the slide's own background), or stretch them over the whole picture.",
"choices": {
"keep": "Keep their shape",
"stretch": "Stretch to fill"
}
},
"area_left": {
"label": "Picture area: left edge (px)",
"hint": "Set with Signage → Screens → Calibrate the picture."
},
"area_top": {
"label": "Picture area: top edge (px)"
},
"area_right": {
"label": "Picture area: right edge (px)"
},
"area_bottom": {
"label": "Picture area: bottom edge (px)"
}
},
"config_groups": {
"picture": "The picture"
}
},
"staff_planning": {
"name": "Staff planning",
"description": "Shift schedule and payroll.",
"permissions": {
"manage": "Plan shifts and see payroll"
}
},
"tabs": {
"name": "Tabs",
"description": "Pay-later tabs for regular customers.",
"permissions": {
"manage": "Open, charge and settle tabs"
}
},
"waiter_app": {
"name": "Waiter app",
"description": "Order taking on the waiters' phones (web and Android app).",
"permissions": {
"access": "Sign in to the waiter app"
}
}
}