feat(manager): products on the page rule, a wide product editor, alternate prices per sales point

- Products: the categories and the list as two containers side by side (the tree sticky), the
  toolbar on the shared controls (search, filters, list/grid, New all one height), archive /
  delete red in a container.
- Product editor: a wide dialog (Dialog size=wide: ~88% of a 16:9 screen, capped on ultrawides),
  the shared tab strip (no up/down scrollbar), one name and description with a language switch
  above them, unit (modern dropdown) and price on one row, 'Edit alternate prices' under Where
  it's sold (the product's own price per sales point: default / set / +- amount / +- %, rounding).
- Pricing: shared tabs in the address, a new 'Order channel prices' tab (rules per product,
  category or sales point, multi-select, the most precise wins).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 15:11:35 +02:00
co-authored by Claude Opus 5.5
parent 94c10944ed
commit 476c55abc0
17 changed files with 636 additions and 104 deletions
+71 -2
View File
@@ -2094,7 +2094,7 @@
"quickAddHint": "Ο σερβιτόρος το προσθέτει με ένα πάτημα, χωρίς την οθόνη επιλογών.",
"soldAt": "Πού πωλείται",
"soldAtHint": "Όπου δεν είναι επιλεγμένο, το προϊόν δεν εμφανίζεται και δεν γίνεται δεκτό σε παραγγελίες.",
"pricePerPoint": "Διαφορετική τιμή ανά σημείο πώλησης (π.χ. φθηνότερο σε πακέτο): Τιμολόγηση → Τροποποιητές, με συνθήκη «Κανάλι παραγγελίας».",
"pricePerPoint": "Διαφορετική τιμή ανά σημείο πώλησης (π.χ. φθηνότερο σε πακέτο): Εναλλακτικές τιμές, ή Τιμολόγηση → Τιμές καναλιών για πολλά προϊόντα μαζί.",
"online": "QR μενού και online",
"orderableNow": "Διαθέσιμο για παραγγελία τώρα",
"orderableNowHint": "Ανενεργό: εμφανίζεται ως «Εξαντλήθηκε».",
@@ -2197,7 +2197,11 @@
"translationTip": "Τι βλέπουν οι πελάτες σε αυτή τη γλώσσα: QR μενού, online παραγγελίες, tablet μενού και οθόνες. Τα δελτία, οι οθόνες κουζίνας, το ταμείο και τα κινητά των σερβιτόρων κρατούν το όνομα όπως γράφτηκε. Αν μείνει κενό, οι πελάτες βλέπουν το όνομα όπως γράφτηκε.",
"trName": "Όνομα",
"trNameHint": "Κενό: το όνομα όπως γράφτηκε.",
"trDescription": "Περιγραφή"
"trDescription": "Περιγραφή",
"altPrices": "Εναλλακτικές τιμές",
"altPricesHint": "Αποθηκεύστε πρώτα το προϊόν.",
"langOf": "Γλώσσα",
"mainLang": "{{language}} (κύρια)"
}
},
"menuTabletSettings": {
@@ -2232,6 +2236,7 @@
"intro": "Κανόνες που αλλάζουν τιμές μόνοι τους (happy hour, εποχή, σημείο πώλησης), διακόπτες που ενεργοποιούν πολλούς μαζί, προσφορές που προτείνουν οι σερβιτόροι, και πόση έκπτωση μπορεί να δώσει ο καθένας. Οι νέες τιμές ισχύουν για ό,τι προστίθεται στις παραγγελίες από εκεί και πέρα.",
"tabs": {
"rules": "Κανόνες τιμών",
"channels": "Τιμές καναλιών",
"groups": "Ομάδες τιμών",
"deals": "Προσφορές",
"discounts": "Εκπτώσεις"
@@ -2478,6 +2483,70 @@
"max_items_per_order": "Τεμάχια ανά παραγγελία",
"max_items_per_orderHint": "Τεμάχια με έκπτωση σε μία παραγγελία."
}
},
"channels": {
"intro": "Η τιμή ενός προϊόντος σε ένα σημείο πώλησης: φθηνότερο σε πακέτο, ακριβότερο με αποστολή. Ένας κανόνας αφορά ένα ή περισσότερα σημεία πώλησης και προϊόντα, κατηγορίες ή ό,τι πουλιέται εκεί. Μετράει ο πιο συγκεκριμένος: η τιμή του ίδιου του προϊόντος, μετά της κατηγορίας του, μετά όλου του καναλιού· χωρίς κανόνα, η κανονική τιμή. Οι κανόνες τιμών και οι προσφορές δουλεύουν μετά πάνω σε αυτή.",
"new": "Νέα τιμή καναλιού",
"none": "Καμία τιμή καναλιού",
"noneHint": "Κάθε σημείο πώλησης χρησιμοποιεί τις κανονικές τιμές.",
"everything": "Ό,τι πουλιέται εκεί",
"edit": "Επεξεργασία",
"remove": "Αφαίρεση",
"active": "Ενεργό",
"cancel": "Άκυρο",
"save": "Αποθήκευση",
"removed": "Η τιμή καναλιού αφαιρέθηκε",
"saved": "Η τιμή καναλιού αποθηκεύτηκε",
"savedFor": "Οι τιμές του {{name}} αποθηκεύτηκαν",
"removeTitle": "Αφαίρεση αυτής της τιμής;",
"removeBody": "Τα προϊόντα επιστρέφουν στην τιμή της κατηγορίας ή του καναλιού τους, ή στην κανονική.",
"newTitle": "Νέα τιμή καναλιού",
"editTitle": "Επεξεργασία τιμής καναλιού",
"points": "Σημεία πώλησης",
"pickPoints": "Επιλέξτε ένα ή περισσότερα",
"products": "Προϊόντα",
"productsHint": "Η σταθερή τιμή είναι για ένα προϊόν.",
"categories": "Κατηγορίες",
"categoriesHint": "Τίποτα εδώ ή στα προϊόντα: όλο το σημείο πώλησης.",
"none_": "Κανένα",
"change": "Τιμή",
"value": "Τιμή",
"price": "Τιμή εκεί",
"point": "Σημείο πώλησης",
"rounding": "Στρογγυλοποίηση",
"valueHint": "Αρνητικό μειώνει την τιμή (π.χ. -10).",
"name": "Όνομα (προαιρετικό)",
"nameHint": "Φαίνεται στη λίστα αντί για τα προϊόντα.",
"order": "Ποια τιμή μετράει: η τιμή του ίδιου του προϊόντος για το σημείο πώλησης, αλλιώς της κατηγορίας του, αλλιώς του σημείου πώλησης, αλλιώς η κανονική.",
"notSold": "Το προϊόν δεν πουλιέται ακόμη πουθενά (Πού πουλιέται).",
"productTitle": "Τιμές του {{name}} ανά σημείο πώλησης",
"productIntro": "Κανονική τιμή {{price}}. Ορίστε δική του τιμή όπου πρέπει να διαφέρει.",
"level": {
"product": "Προϊόν",
"category": "Κατηγορία",
"channel": "Σημείο πώλησης"
},
"action": {
"default": "Κανονική",
"set": "Σταθερή τιμή",
"add_amount": "± ποσό",
"add_percent": "± %"
},
"valueOf": {
"set": "Τιμή (€)",
"add_amount": "Ποσό (€)",
"add_percent": "Ποσοστό (%)"
},
"from": {
"product": "δική του τιμή {{what}}",
"category": "από την κατηγορία: {{what}}",
"channel": "από το σημείο πώλησης: {{what}}"
},
"wrong": {
"points": "Επιλέξτε τουλάχιστον ένα σημείο πώλησης.",
"value": "Δώστε τιμή (η σταθερή τιμή δεν γίνεται αρνητική).",
"set_one": "Η σταθερή τιμή είναι για ακριβώς ένα προϊόν, χωρίς κατηγορίες."
}
}
},
"floor": {
+71 -2
View File
@@ -2094,7 +2094,7 @@
"quickAddHint": "The waiters add one with a tap, without the choices screen.",
"soldAt": "Where it's sold",
"soldAtHint": "Where it isn't ticked, it isn't shown and orders with it are refused.",
"pricePerPoint": "A different price per sales point (e.g. cheaper to take away): Pricing → Modifiers, with the condition \"Order channel\".",
"pricePerPoint": "A different price per sales point (e.g. cheaper to take away): Edit alternate prices, or Pricing → Order channel prices for many products at once.",
"online": "QR menu and online",
"orderableNow": "Can be ordered now",
"orderableNowHint": "Off: the customer apps show it as sold out.",
@@ -2197,7 +2197,11 @@
"translationTip": "What guests see in this language: the QR menu, online ordering, the menu tablets and the screens. Tickets, the kitchen screens, the counter and the waiters' phones keep the name as typed above. Left empty, guests see the name as typed.",
"trName": "Name",
"trNameHint": "Empty: the name as typed.",
"trDescription": "Description"
"trDescription": "Description",
"altPrices": "Edit alternate prices",
"altPricesHint": "Save the product first.",
"langOf": "Language",
"mainLang": "{{language}} (main)"
}
},
"menuTabletSettings": {
@@ -2232,6 +2236,7 @@
"intro": "Rules that change prices by themselves (happy hour, a season, a sales point), switches that turn several on at once, deals the waiters offer, and how much discount each person may give. New prices apply to what is added to orders from then on.",
"tabs": {
"rules": "Price rules",
"channels": "Order channel prices",
"groups": "Price groups",
"deals": "Deals",
"discounts": "Discounts"
@@ -2478,6 +2483,70 @@
"max_items_per_order": "Items per order",
"max_items_per_orderHint": "Discounted items on one order."
}
},
"channels": {
"intro": "A product's price at a sales point: cheaper to take away, dearer delivered. A rule is for one or more sales points and for products, categories, or everything sold there. The most precise rule wins: a product's own price, then its category's, then the whole channel's; no rule, the default price. Price rules and deals then work on that price.",
"new": "New channel price",
"none": "No channel prices",
"noneHint": "Every sales point uses the products' default prices.",
"everything": "Everything sold there",
"edit": "Edit",
"remove": "Remove",
"active": "On",
"cancel": "Cancel",
"save": "Save",
"removed": "Channel price removed",
"saved": "Channel price saved",
"savedFor": "Prices of {{name}} saved",
"removeTitle": "Remove this channel price?",
"removeBody": "Those products go back to their category's or channel's price, or the default.",
"newTitle": "New channel price",
"editTitle": "Edit channel price",
"points": "Sales points",
"pickPoints": "Pick one or more",
"products": "Products",
"productsHint": "A set price is for one product.",
"categories": "Categories",
"categoriesHint": "Nothing picked here or in products: the whole sales point.",
"none_": "None",
"change": "Price",
"value": "Value",
"price": "Price there",
"point": "Sales point",
"rounding": "Rounding",
"valueHint": "Negative lowers the price (e.g. -10).",
"name": "Name (optional)",
"nameHint": "Shown in the list instead of the products.",
"order": "Which price counts: the product's own price for the sales point, else its category's, else the sales point's, else the default price.",
"notSold": "This product isn't sold anywhere yet (Where it's sold).",
"productTitle": "Prices of {{name}} per sales point",
"productIntro": "Default price {{price}}. Set this product's own price where it should differ.",
"level": {
"product": "Product",
"category": "Category",
"channel": "Sales point"
},
"action": {
"default": "Default",
"set": "Set price",
"add_amount": "± amount",
"add_percent": "± %"
},
"valueOf": {
"set": "Price (€)",
"add_amount": "Amount (€)",
"add_percent": "Percentage (%)"
},
"from": {
"product": "own price {{what}}",
"category": "from its category: {{what}}",
"channel": "from the sales point: {{what}}"
},
"wrong": {
"points": "Pick at least one sales point.",
"value": "Enter a value (a set price can't be below zero).",
"set_one": "A set price is for exactly one product and no categories."
}
}
},
"floor": {
+2
View File
@@ -91,6 +91,8 @@
.x-dialog--md { max-width: 520px; }
.x-dialog--lg { max-width: 720px; }
.x-dialog--xl { max-width: 920px; }
/* big editors (the product editor): most of a 16:9 screen, capped on ultrawides by the page width */
.x-dialog--wide { width: min(88vw, calc(var(--x-page-max) * 0.88)); max-width: none; }
.x-sheet--bottom {
width: 100%; max-width: 640px; max-height: 90vh;