Files
xenia-pos-local/packages/i18n/locales/en/manager.json
T
bonaminandClaude Opus 5.5 9bfe54554d feat: delivery areas and fee rules with "test an order" (platform-v2 3S, S.3)
- models/fees.py + Alembic 0018: delivery_areas, fee_rules; key connect_orders.fees
  (owner, store manager; existing ones get it).
- services/fees.py: the pure engine (set / add / % / free / minimum, conditions: sales
  points, areas, products total, item count, days, time incl. past midnight, stop), the
  same file as the cloud's; tests/fixtures/fee_cases.json shared, plus a test that the
  cloud copy is identical.
- routers/fees.py at /api/connect/fees: areas and rules CRUD (validated), order, preview.
- Snapshot carries fees + the venue's time zone; a change to products, pricing or fees
  pushes the menu within ~5 s (middleware -> cloud_sync.request_menu_push).
- Manager: Online -> Delivery fees page (@xenia/ui): rules in order with words for each,
  areas with postcodes, "Test an order"; en/el texts; feesLogic.js unit-tested.
- Tests: test_fees.py (39), manager unit +5, manager.mjs +7 on the real page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:28:29 +02:00

514 lines
19 KiB
JSON
Raw 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.
{
"nav": {
"sections": {
"operation": "Operation",
"financial": "Finance",
"headquarters": "Headquarters",
"overwatch": "Overview"
},
"dashboard": "Overview",
"tables": "Tables",
"onlineOrders": "Online orders",
"crm": "CRM",
"contacts": "Contacts",
"customers": "Customers",
"finance": "Finance",
"expenses": "Expenses",
"tabs": "Customer tabs",
"management": "Management",
"products": "Products",
"tablesConfig": "Tables",
"staff": "Staff",
"schedule": "Schedule",
"prepZones": "Prep zones",
"pricing": "Offers & pricing",
"notes": "Notes",
"inventory": "Inventory",
"waste": "Waste",
"stock": "Stock",
"reports": "Reports",
"reportsToday": "Today",
"reportsStore": "Venue",
"reportsStaff": "Staff",
"reportsProducts": "Products",
"reportsPrepZones": "Prep zones",
"reportsExpenses": "Expenses",
"reportsTechnical": "Technical",
"reportsMisc": "Other",
"apps": "Apps",
"phone": "Phone",
"settings": "Settings",
"order": "Order",
"soon": "soon",
"integrations": "Integrations",
"license": "License",
"devices": "Devices",
"sessions": "Signed in now",
"approvals": "Manager approvals",
"deliveryFees": "Delivery fees"
},
"profile": {
"edit": "Edit profile",
"signOut": "Sign out",
"language": "Language"
},
"login": {
"title": "Sign in",
"subtitle": "Manager dashboard",
"username": "Username",
"password": "Password",
"pin": "PIN",
"signIn": "Sign in",
"otherAccount": "Use another account",
"supportLink": "Support access"
},
"support": {
"title": "Support access",
"intro": "Read this code to Xenia support. They will give you a code back.",
"challenge": "Code for support",
"answer": "Support's code",
"verify": "Open support session",
"newChallenge": "New code",
"back": "Back to sign in",
"expires": "This code is valid until {{time}}."
},
"license": {
"expired": "The license has expired. This venue runs the free version until it's renewed: some features are off.",
"inactive": "The license isn't active. This venue runs the free version: some features are off.",
"locked": "The license provider locked this venue. It runs the free version: some features are off.",
"clock": "The server's clock went back in time, so the license can't be trusted. Fix the server's date and time or connect it to the internet.",
"unverified": "The license hasn't been verified yet (no connection to the license server). This venue runs the free version for now."
},
"lock": {
"title": "Locked",
"signOutInstead": "Sign out instead"
},
"modules": {
"appsIntro": "Turn parts of the system on or off for this venue. What's off disappears from every screen and its data stays safe.",
"integrationsIntro": "Connections to other equipment and services.",
"sections": {
"app": "Device apps",
"feature": "Features",
"core": "Always included"
},
"on": "On",
"off": "Off",
"alwaysOn": "Always on",
"notLicensed": "Not in your license",
"waiting": "Waiting for {{list}}",
"needs": "Needs {{list}}",
"open": "Open",
"unlimited": "Unlimited",
"toggleLabel": "{{name}} on or off",
"confirmOffTitle": "Turn off {{name}}?",
"confirmOffBody": "These stop working too while it's off: {{list}}.",
"turnOff": "Turn off",
"changed": "{{name}} is now {{state}}",
"readOnly": "Only someone with permission to manage apps can change these.",
"setUpScreen": "Set up a screen"
},
"licensePage": {
"status": "Status",
"statusDev": "Development mode (every module, no limits)",
"statusLicensed": "Licensed",
"statusFree": "Free version",
"siteId": "Site ID",
"expires": "Valid until",
"daysLeft_one": "{{count}} day left",
"daysLeft_other": "{{count}} days left",
"lastSync": "Last contact with the license server",
"never": "never",
"syncNow": "Check the license now",
"synced": "License checked",
"syncFailed": "Couldn't reach the license server",
"offline": "No contact with the license server for {{count}} days. The venue keeps working until the license expires.",
"modules": "Modules",
"module": "Module",
"included": "Included",
"inLicense": "In your license",
"inLicenseUntil": "In your license until {{date}}",
"free": "Free version",
"dev": "Development",
"notIncluded": "Not included",
"limits": "Limits"
},
"devices": {
"intro": "Screens and terminals that run one app each: kitchen displays, counter POS, customer displays, signage, menu tablets. Phones of staff are not devices; they sign in as themselves.",
"pair": "Pair a device",
"empty": "No devices yet",
"emptyBody": "Open the app on the screen you want to use: it shows a 6-character code. Then choose \"Pair a device\" here.",
"showRemoved": "Show removed devices",
"usage": "{{label}}: {{used}} of {{max}}",
"usageUnlimited": "{{label}}: {{used}}",
"columns": {
"device": "Device",
"app": "App",
"status": "Status",
"signIn": "Sign-in",
"linked": "Linked to",
"actions": ""
},
"status": {
"online": "Online",
"offline": "Last seen {{when}}",
"offlineNever": "Not seen yet",
"waiting": "Waiting for the device to connect",
"app_off": "App turned off",
"removed": "Removed {{when}}"
},
"signIn": {
"default": "Venue default ({{mode}})",
"pin": "PIN",
"password": "Password",
"tap": "Tap your name",
"none": "No sign-in",
"defaultPlain": "Venue default"
},
"form": {
"code": "Code shown on the device",
"codeHint": "6 characters, letters and digits",
"app": "App to run",
"name": "Name",
"namePlaceholder": "e.g. Kitchen, Bar, Counter 1",
"signIn": "How staff sign in",
"link": "Linked device",
"noLink": "None",
"none": "None",
"linkHint": "For example a customer display that shows a counter POS's order.",
"full": "{{label}}: the license allows {{max}}, all in use. Remove one or ask for a bigger license.",
"noApps": "No device app is turned on. Turn one on in Apps first."
},
"actions": {
"rename": "Rename",
"changeApp": "Change app",
"remove": "Remove",
"save": "Save",
"edit": "Edit"
},
"paired": "{{name}} is paired. It starts in a few seconds.",
"saved": "Saved",
"removeTitle": "Remove {{name}}?",
"removeBody": "It stops at once and shows the pairing screen. To use it again, pair it again.",
"changeAppBody": "Whoever is signed in on it is signed out.",
"limitReached": "{{label}}: the license allows {{max}}. Remove one or ask for a bigger license."
},
"roles": {
"superadmin": "Superadmin",
"owner": "Owner",
"store_manager": "Store manager",
"staff_manager": "Staff manager",
"chef": "Chef",
"assistant_chef": "Assistant chef",
"barista": "Barista",
"barman": "Bartender",
"waiter": "Waiter",
"assistant_waiter": "Assistant waiter",
"custom": "Custom"
},
"permissions": {
"column": "Permissions",
"open": "Permissions",
"count_one": "{{count}} permission",
"count_other": "{{count}} permissions",
"all": "All permissions",
"custom": "Changed from role",
"title": "Permissions: {{name}}",
"subtitle": "Role: {{role}}. Changes apply from their next action.",
"superadmin": "The superadmin always has every permission. There is nothing to change here.",
"moduleOff": "Turned off",
"notYours": "You don't have this permission yourself, so you can't give it",
"roleHas": "The role has this",
"roleHasNot": "Not part of the role",
"overridable": "Without this permission, a manager can still allow it once by typing their PIN on the same screen.",
"reset": "Reset to role defaults",
"resetDone": "Set to the role's defaults. Save to keep it.",
"resetSkipped": "Set to the role's defaults, except what you can't give: {{list}}. Save to keep it.",
"save": "Save",
"saveCount_one": "Save {{count}} change",
"saveCount_other": "Save {{count}} changes",
"saved": "Permissions of {{name}} saved",
"cannotGrant": "You can only give permissions you have yourself: \"{{label}}\"."
},
"sessions": {
"intro": "Everyone signed in right now, and where. Ending a session signs that person out at once; they can sign in again.",
"empty": "Nobody is signed in",
"columns": {
"person": "Person",
"where": "Where",
"since": "Signed in",
"active": "Last active",
"ended": "Ended",
"actions": ""
},
"client": {
"manager": "Manager dashboard",
"waiter": "Waiter app",
"terminal": "Device",
"support": "Support access",
"supportUntil": "Support access, until {{time}}"
},
"support": "Xenia support",
"unknownDevice": "Removed device",
"you": "You, here",
"end": "End session",
"endTitle": "End the session of {{name}}?",
"endBody": "They are signed out at once ({{where}}) and have to sign in again.",
"ended": "{{name}} was signed out",
"showEnded": "Show ended sessions",
"reason": {
"logout": "signed out",
"replaced": "signed in elsewhere",
"ended_by_manager": "ended by a manager",
"user_blocked": "account blocked",
"refreshed": "renewed",
"device_revoked": "device removed",
"device_reassigned": "device changed app",
"expired": "time ran out",
"unlock_failed": "wrong PIN on the lock screen",
"idle": "not used for too long"
}
},
"approvals": {
"intro": "Every time a manager typed their PIN to allow one action for someone who doesn't have the permission. An approval works once, within a minute.",
"empty": "No approvals yet",
"emptyBody": "When a waiter needs a manager for an action, e.g. cancelling an item already sent, the manager's approval shows here.",
"columns": {
"when": "When",
"action": "Action",
"askedBy": "Asked by",
"approvedBy": "Approved by",
"where": "Device",
"result": "Result"
},
"state": {
"used": "Used",
"expired": "Not used",
"waiting": "Waiting"
},
"order": "Order #{{id}}"
},
"notifications": {
"bell": "Notifications",
"bellUnread_one": "Notifications: {{count}} unread",
"bellUnread_other": "Notifications: {{count}} unread",
"title": "Notifications",
"empty": "Nothing new. Licence, printing and support alerts show up here.",
"markAll": "Mark all as read",
"times_one": "{{count}} time",
"times_other": "{{count}} times"
},
"settings": {
"saved": "Saved",
"tabs": {
"app-info": "General",
"venue": "Venue & language",
"security": "Sign-in & security",
"operation": "Operation",
"colours": "Appearance",
"print-fonts": "Printing",
"fiscal": "Fiscal device",
"development": "Developer"
},
"mode": {
"password": "Password",
"pin": "PIN",
"tap": "Tap your name",
"none": "No sign-in"
},
"session": {
"off": "Allowed on several devices",
"refuse_new": "Refuse a second sign-in",
"end_old": "Sign out the older one"
},
"signIn": {
"title": "Sign-in",
"intro": "How each app asks people who they are. Changes apply to the next sign-in.",
"manager": "Managers sign in to this dashboard with",
"managerTip": "With PIN, managers type the same PIN they use to unlock the screen and to approve actions. Every manager needs a PIN.",
"autofill": "Fill in the username when there is only one manager",
"autofillHint": "The sign-in page then only asks for the password or PIN.",
"waiter": "Waiters sign in to the waiter app with",
"waiterTapWarning": "\"Tap your name\" works only on paired devices. On their own phones, waiters can't sign in this way.",
"requireUsername": "Waiters type their username",
"requireUsernameHint": "Instead of picking their name from the list.",
"device": "On paired devices (kitchen display, counter POS), staff sign in with",
"deviceHint": "Each device can choose its own on the Devices page.",
"singleManager": "One session per manager",
"singleWaiter": "One session per waiter",
"singleTip": "When someone is already signed in on another device: allow both, refuse the new sign-in, or sign out the older one.",
"idle": "Sign people out after",
"idleHint": "Days without using the app (manager, waiter app and paired devices). They sign in again next time.",
"idleDays_one": "{{count}} day without use",
"idleDays_other": "{{count}} days without use",
"idleNever": "Never"
},
"venue": {
"title": "Venue",
"language": "Language",
"languageHint": "For staff who haven't chosen their own, and for printed tickets and reports.",
"timezone": "Time zone",
"timezoneHint": "Every time is shown in it. The time there now: {{time}}."
},
"print": {
"title": "Print alerts",
"alert": "Tell managers when a ticket fails to print",
"alertHint": "While it keeps retrying. A ticket that is finally given up is always reported.",
"never": "Only when it is given up",
"after_one": "After {{count}} failed attempt",
"after_other": "After {{count}} failed attempts"
}
},
"logs": {
"tab": "Log files",
"intro": "The system's daily log files, kept for 30 days. Support may ask for the file of the day something went wrong. Days are in UTC.",
"empty": "No log files yet",
"current": "(still being written)",
"size": "{{size}} KB",
"download": "Download"
},
"setup": {
"language": "Staff language",
"timezone": "Time zone",
"languageHint": "The language of staff screens (each person can choose their own) and of printed tickets and reports."
},
"fees": {
"title": "Delivery areas and fees",
"intro": "Fees for online orders, looked at from the top: every rule whose conditions hold changes the fee, or refuses the order below a minimum. The customer sees the fee before ordering, and the online checkout charges exactly what \"Test an order\" shows. Without rules there is no fee.",
"rules": "Fee rules",
"addRule": "Add a rule",
"editRule": "Edit rule",
"noRules": "No fee rules",
"noRulesBody": "Online orders are charged no fee. Add a rule for a delivery fee, a minimum order or free delivery above an amount.",
"areas": "Delivery areas",
"addArea": "Add an area",
"editArea": "Edit area",
"noAreas": "No areas: deliveries are accepted to any address. Add areas to deliver only there and to charge by area.",
"byNameOnly": "Picked by name (no postcodes)",
"areaName": "Name",
"areaNameHint": "What customers pick, e.g. a village or a neighbourhood",
"postcodes": "Postcodes",
"postcodesHint": "Optional, separated by commas. A customer who types one of these is in this area.",
"postcode": "Postcode",
"areaActive": "We deliver here",
"edit": "Edit",
"delete": "Delete",
"up": "Move up",
"down": "Move down",
"active": "On",
"save": "Save",
"cancel": "Cancel",
"saved": "Saved",
"deleted": "Deleted",
"deleteArea": "Delete the area \"{{name}}\"?",
"deleteRule": "Delete the rule \"{{name}}\"?",
"deleteBody": "Online orders use the rules as they are after this, within a few seconds.",
"when": "When:",
"then": "Then:",
"stopShort": "stop here",
"cond": {
"areas": "area {{names}}",
"subtotalBetween": "products {{minMoney}} to under {{maxMoney}}",
"subtotalFrom": "products {{minMoney}} or more",
"subtotalBelow": "products under {{maxMoney}}",
"itemsBetween": "{{min}} to {{max}} items",
"itemsFrom": "{{min}} items or more",
"itemsUpTo": "up to {{max}} items",
"days": "{{days}}",
"time": "{{from}}–{{to}}"
},
"do": {
"set": "the fee is {{value}}",
"add": "add {{value}} to the fee",
"percent": "add {{value}} % of the products",
"free": "no fee",
"minimum": "refuse orders under {{value}}"
},
"ruleName": "Name",
"ruleNameHint": "For you, e.g. \"Delivery\", \"Free over €25\"",
"what": "What it does",
"action": {
"set": "Set the fee to",
"add": "Add to the fee",
"percent": "Add a % of the products",
"free": "No fee (free delivery)",
"minimum": "Minimum order"
},
"valueLabel": {
"set": "Fee in euros",
"add": "Amount in euros",
"percent": "Percent",
"minimum": "Minimum in euros"
},
"actionHint": {
"set": "Replaces the fee so far. Use it for the base delivery fee.",
"add": "Added to the fee so far (a negative amount lowers it), e.g. a surcharge for a far area or a big order.",
"percent": "A percentage of the products' total, added to the fee.",
"free": "The fee becomes 0. Usually with \"stop here\", e.g. free delivery over an amount.",
"minimum": "Orders whose products cost less are refused; the customer is told the minimum."
},
"salesPoints": "For",
"conditions": "Only when (all that you fill in)",
"conditionsHint": "Leave empty for always.",
"onlyAreas": "Delivery areas",
"subtotalMin": "Products from (€)",
"subtotalMax": "Products under (€)",
"itemsMin": "Items from",
"itemsMax": "Items up to",
"onlyDays": "Days",
"timeFrom": "From",
"timeTo": "Until",
"timeHint": "An end before the start runs past midnight (e.g. 22:00–02:00).",
"stop": "Stop here",
"stopHint": "When this rule applies, the rules below it are not looked at.",
"problem": {
"name": "Give the rule a name.",
"value": "Enter an amount.",
"negative": "Only \"Add to the fee\" takes a negative amount.",
"percent": "A percentage is at most 100.",
"subtotalRange": "The lower amount must be below the upper one.",
"itemsRange": "The lower count must not be above the upper one.",
"times": "Give both times, or neither.",
"salesPoints": "Pick at least one."
},
"dayShort": {
"0": "Mon",
"1": "Tue",
"2": "Wed",
"3": "Thu",
"4": "Fri",
"5": "Sat",
"6": "Sun"
},
"dayLong": {
"0": "Monday",
"1": "Tuesday",
"2": "Wednesday",
"3": "Thursday",
"4": "Friday",
"5": "Saturday",
"6": "Sunday"
},
"test": "Test an order",
"testSalesPoint": "Ordered as",
"testWhere": "Where",
"testByArea": "Pick an area",
"testByPostcode": "Type a postcode",
"testNoArea": "No area",
"testSubtotal": "Products (€)",
"testItems": "Items",
"testDay": "Day",
"testTime": "Time",
"now": "Now",
"testRun": "Work out the fee",
"testFee": "Fee:",
"testTotal": "Total with products: {{total}}",
"testArea": "Area: {{name}}",
"testApplied": "Rules applied: {{names}}",
"testNone": "No rule applied.",
"refused": {
"minimum_not_met": "Refused: the minimum order is {{minimum}}.",
"area_not_served": "Refused: no delivery to this address."
}
}
}