feat(manager): customers, throwaways, stock and notes on v2 (platform-v2 step 6.13b)
- CRM -> Customers: search ignoring case and Greek accents (and part of the phone), visits / spent / last visit, the card (contact, notes, open tab, every visit with what was on a tab), new/edit/remove - Inventory -> Throwaways: log (product, quantity with a comma, reason, note) with its cost, today's list (delete today only), a period's totals by reason and product, every entry; Inventory -> Stock: an honest 'not available yet' - Notes: notes (pinned first, edit in place) and to-dos (urgent first, done folded away, who did it kept) - backend: crm.manage / inventory.manage / notes.use (the customer search also with the dashboard key, for orders); spending counted by services/sales.py (refunds off, tab lines in); null clears a field; names/notes not blank, priorities checked; waste ?date_from=&date_to= venue dates; the Greek reason labels left the API; live customers.changed / waste.changed / notes.changed - the overview's notes card needs notes.use and refreshes live - tests: test_customers_waste_notes.py (4), crm.test.mjs (3), e2e manager.mjs (customers, throwaways, notes, stock, Greek) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3261,5 +3261,148 @@
|
||||
"forgiveYes": "Forgive it",
|
||||
"forgiven": "{{name}}: {{amount}} forgiven"
|
||||
}
|
||||
},
|
||||
"customers": {
|
||||
"title": "Customers",
|
||||
"subtitle": "The venue's regular customers: what they like, how often they come, what they spend.",
|
||||
"new": "New customer",
|
||||
"newTitle": "New customer",
|
||||
"add": "Add the customer",
|
||||
"save": "Save",
|
||||
"back": "Back",
|
||||
"edit": "Edit",
|
||||
"search": "Search name, nickname, phone, e-mail or notes",
|
||||
"name": "Name",
|
||||
"nickname": "Nickname",
|
||||
"nicknameHint": "How the staff know them.",
|
||||
"phone": "Phone",
|
||||
"phoneHint": "Caller ID finds them by it.",
|
||||
"email": "E-mail",
|
||||
"notes": "Notes",
|
||||
"notesHint": "Allergies, what they like, anything the staff should know.",
|
||||
"visits": "Visits",
|
||||
"spent": "Spent",
|
||||
"spentTip": "Their finished orders, as the reports count them: refunds off, lines on a tab included.",
|
||||
"perVisit": "Per visit",
|
||||
"lastVisit": "Last visit",
|
||||
"none": "No customers yet.",
|
||||
"noneHint": "Add regulars here, or from an order (its customer) or a phone call.",
|
||||
"noMatch": "No customer matches.",
|
||||
"editOf": "Edit {{name}}",
|
||||
"removeOf": "Remove {{name}}",
|
||||
"added": "{{name}} added",
|
||||
"saved": "{{name}} saved",
|
||||
"removed": "{{name}} removed",
|
||||
"removeTitle": "Remove {{name}}?",
|
||||
"removeBody": "They leave the list and the search. Their past orders keep their name.",
|
||||
"removeYes": "Remove",
|
||||
"owes": "Owes on their tab",
|
||||
"owesSub": "open since {{date}} · {{paid}} paid so far: settle it in Finance → Tabs",
|
||||
"history": "Visits",
|
||||
"noVisits": "No orders yet.",
|
||||
"atTable": "Table {{table}}",
|
||||
"noTable": "Without a table",
|
||||
"orderType": {
|
||||
"takeaway": "Takeaway",
|
||||
"delivery": "Delivery",
|
||||
"here": "In the shop"
|
||||
},
|
||||
"items_one": "{{count}} item",
|
||||
"items_other": "{{count}} items",
|
||||
"onTab": "{{amount}} on the tab",
|
||||
"orderStatus": {
|
||||
"open": "Open",
|
||||
"partially_paid": "Partly paid",
|
||||
"paid": "Paid",
|
||||
"closed": "Closed",
|
||||
"cancelled": "Cancelled"
|
||||
},
|
||||
"wrong": {
|
||||
"name": "Enter a name.",
|
||||
"email": "This doesn't look like an e-mail address."
|
||||
}
|
||||
},
|
||||
"waste": {
|
||||
"title": "Throwaways",
|
||||
"subtitle": "What was thrown away and what it cost. Each entry keeps the product's cost at that moment.",
|
||||
"log": "Log a throwaway",
|
||||
"product": "Product",
|
||||
"choose": "Choose a product…",
|
||||
"pickProduct": "Choose what was thrown away.",
|
||||
"quantity": "How many",
|
||||
"wrongQty": "Enter a quantity above zero.",
|
||||
"reason": "Why",
|
||||
"reasons": {
|
||||
"kitchen_error": "Kitchen mistake",
|
||||
"dropped": "Dropped",
|
||||
"expired": "Expired",
|
||||
"other": "Other"
|
||||
},
|
||||
"note": "Note",
|
||||
"noteHint": "Optional: e.g. a customer sent it back",
|
||||
"logIt": "Log it",
|
||||
"logged": "{{name}} logged (it has no cost set)",
|
||||
"loggedCost": "{{name}} logged: {{cost}}",
|
||||
"noDayHint": "No business day is open: the entry is logged without one.",
|
||||
"today": "Today",
|
||||
"todaySum_one": "{{count}} entry · {{cost}}",
|
||||
"todaySum_other": "{{count}} entries · {{cost}}",
|
||||
"noDay": "No business day is open.",
|
||||
"noneToday": "Nothing thrown away today.",
|
||||
"when": "When",
|
||||
"by": "Logged by",
|
||||
"cost": "Cost",
|
||||
"noCost": "no cost",
|
||||
"deleteOf": "Delete {{name}}",
|
||||
"deleteTitle": "Delete this throwaway ({{name}})?",
|
||||
"deleteYes": "Delete",
|
||||
"deleted": "Throwaway deleted",
|
||||
"back": "Back",
|
||||
"history": "Earlier",
|
||||
"entries": "Entries",
|
||||
"uncosted_one": "{{count}} without a cost",
|
||||
"uncosted_other": "{{count}} without a cost",
|
||||
"byReason": "By reason",
|
||||
"byProduct": "By product (cost)",
|
||||
"times_one": "{{count}} time",
|
||||
"times_other": "{{count}} times",
|
||||
"units": "{{qty}} thrown away",
|
||||
"every": "Every throwaway",
|
||||
"noneInPeriod": "Nothing thrown away in this period."
|
||||
},
|
||||
"stock": {
|
||||
"title": "Stock",
|
||||
"soon": "Counting stock isn't available yet. Costs are set on each product (Products) and throwaways are logged in Inventory → Throwaways."
|
||||
},
|
||||
"notes": {
|
||||
"title": "Notes",
|
||||
"subtitle": "{{notes}} notes · {{todos}} to-dos open. Shared by the managers.",
|
||||
"notes": "Notes",
|
||||
"todos": "To-dos",
|
||||
"pinned": "Pinned",
|
||||
"others": "Others",
|
||||
"newNote": "A new note… (Ctrl+Enter saves)",
|
||||
"pinIt": "Pin it",
|
||||
"addNote": "Add the note",
|
||||
"newTodo": "Something to do… (Enter adds it)",
|
||||
"urgent": "Urgent",
|
||||
"urgentTag": "URGENT",
|
||||
"addTodo": "Add",
|
||||
"noNotes": "No notes yet.",
|
||||
"noTodos": "Nothing to do yet.",
|
||||
"edit": "Edit",
|
||||
"tapToEdit": "Tap to edit",
|
||||
"pin": "Pin",
|
||||
"unpin": "Unpin",
|
||||
"markDone": "Mark done: {{what}}",
|
||||
"undo": "Not done: {{what}}",
|
||||
"doneBy": "done by {{name}}, {{time}}",
|
||||
"doneCount_one": "{{count}} done",
|
||||
"doneCount_other": "{{count}} done",
|
||||
"deleteNote": "Delete the note",
|
||||
"deleteTodo": "Delete the to-do",
|
||||
"deleteYes": "Delete",
|
||||
"deleted": "Deleted",
|
||||
"back": "Back"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user