feat(manager): products and categories on v2, a product in several categories, allergens (platform-v2 step 6.3)
- Management/ProductsTab + ProductFormModal (3.1k lines) → src/pages/products/: category tree, list/grid, toolbar + filters (search folds accents and Latin letters), bulk actions, category dialogs; the editor in editor/ (details, sold at, cost, fiscal; the waiter's choices). Arithmetic in productsLogic.js / editor/formLogic.js (tests/products.test.mjs). - Several categories per product with a main one (D-23): edited in the editor, "also in" on the rows, each category's list ordered on its own (drag or up/down → PUT /reorder with category_id); bulk "move to" / "also list in". The waiter's picker now shows a product in every category. - Allergens: products.allergens (Alembic 0032, core/allergens.py: 14 EU, contains | may_contain, catalog.allergen), in the API, POS menu, menu tablet, catalogue bundles and the cloud snapshot (C-2); @xenia/access allergens.js + <Allergens> shown on the phone, the counter, the tablet. - Bell: only the newest load sets the list (an older answer could hide a live notification). - e2e: manager (two categories, order per category, allergens), terminal / menu tablet / waiter (allergens shown); media saves by test id. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
"description": "Bootstrap provider, module/permission hooks and guards, and the manager-approval dialog (plan step 2.5).",
|
||||
"main": "src/index.js",
|
||||
"exports": {
|
||||
".": "./src/index.js"
|
||||
".": "./src/index.js",
|
||||
"./salesPoints": "./src/salesPoints.js",
|
||||
"./allergens": "./src/allergens.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@xenia/api": "^0.0.0",
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
// A product's allergens for staff and guests (plan step 6.3): one small chip each, what it
|
||||
// contains first (warning tone), then what it may contain (outlined), under a title. Styled with
|
||||
// the @xenia/ui tokens inline, so every app (waiter, terminal, manager) shows it the same way.
|
||||
// Nothing when none are declared, unless `showNone`.
|
||||
import { useTranslation } from '@xenia/i18n'
|
||||
import { allergenList } from './allergens.js'
|
||||
|
||||
const chip = level => ({
|
||||
display: 'inline-flex', alignItems: 'center', gap: 4, padding: '2px 8px',
|
||||
borderRadius: 999, fontSize: 'var(--x-text-caption)', fontWeight: 600, lineHeight: 1.6,
|
||||
...(level === 'contains'
|
||||
? { background: 'var(--x-warning-soft)', color: 'var(--x-warning-ink)', border: '1px solid transparent' }
|
||||
: { background: 'transparent', color: 'var(--x-ink-2)', border: '1px dashed var(--x-line-strong)' }),
|
||||
})
|
||||
|
||||
export function Allergens({ allergens, showNone = false, title = true, className, style }) {
|
||||
const { t } = useTranslation('common')
|
||||
const items = allergenList(allergens)
|
||||
if (items.length === 0 && !showNone) return null
|
||||
const groups = ['contains', 'may_contain'].map(level => [level, items.filter(i => i.level === level)]).filter(([, list]) => list.length)
|
||||
return (
|
||||
<div className={className} style={{ display: 'grid', gap: 6, ...style }} data-testid="allergens" data-count={items.length}>
|
||||
{title && <div style={{ fontSize: 'var(--x-text-caption)', fontWeight: 700, textTransform: 'uppercase', letterSpacing: '0.04em', color: 'var(--x-ink-3)' }}>{t('allergens.title')}</div>}
|
||||
{items.length === 0 && <div style={{ fontSize: 'var(--x-text-label)', color: 'var(--x-ink-3)' }}>{t('allergens.none')}</div>}
|
||||
{groups.map(([level, list]) => (
|
||||
<div key={level} style={{ display: 'flex', flexWrap: 'wrap', alignItems: 'center', gap: 4 }}>
|
||||
<span style={{ fontSize: 'var(--x-text-caption)', color: 'var(--x-ink-2)', marginRight: 2 }}>{t(`allergens.level.${level}`)}:</span>
|
||||
{list.map(i => <span key={i.key} style={chip(level)} data-allergen={i.key} data-level={level}>{t(`allergens.${i.key}`)}</span>)}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// Allergens (plan step 6.3): the 14 that EU Regulation 1169/2011 (Annex II) requires a venue to
|
||||
// declare. The same fixed list and order as the backend's core/allergens.py (a backend test
|
||||
// compares them). A product carries `allergens` = { key: 'contains' | 'may_contain' }.
|
||||
// Labels: common:allergens.<key>, common:allergens.level.<level>.
|
||||
export const ALLERGENS = ['gluten', 'crustaceans', 'eggs', 'fish', 'peanuts', 'soybeans', 'milk', 'nuts', 'celery', 'mustard', 'sesame', 'sulphites', 'lupin', 'molluscs']
|
||||
export const ALLERGEN_LEVELS = ['contains', 'may_contain']
|
||||
|
||||
/** A product's allergens as a list to show: what it contains first, then traces; list order within each. */
|
||||
export function allergenList(map) {
|
||||
const m = map && typeof map === 'object' ? map : {}
|
||||
return ALLERGEN_LEVELS.flatMap(level => ALLERGENS.filter(k => m[k] === level).map(key => ({ key, level })))
|
||||
}
|
||||
|
||||
/** The next level when a manager taps an allergen: none → contains → may contain → none. */
|
||||
export function nextAllergenLevel(level) {
|
||||
return level === 'contains' ? 'may_contain' : level === 'may_contain' ? null : 'contains'
|
||||
}
|
||||
|
||||
/** Set (or with null, clear) one allergen; a new object in the list's order. */
|
||||
export function setAllergen(map, key, level) {
|
||||
const out = {}
|
||||
for (const k of ALLERGENS) {
|
||||
const v = k === key ? level : map?.[k]
|
||||
if (v) out[k] = v
|
||||
}
|
||||
return out
|
||||
}
|
||||
@@ -9,6 +9,7 @@
|
||||
// <Can perm="…" fallback={…}> · <RequireModule module="…">
|
||||
//
|
||||
// SALES_POINTS, IN_PERSON, DIGITAL where an order is sold (phase 3S)
|
||||
// ALLERGENS, allergenList, setAllergen the 14 EU allergens (6.3)
|
||||
//
|
||||
// UI hiding only: the backend checks every request (CS-14).
|
||||
|
||||
@@ -17,3 +18,5 @@ export { useAccess, useModule, useCan, can, useAllowed, allowed } from './hooks.
|
||||
export { Can, RequireModule, ModuleOff, NoAccess } from './guards.jsx'
|
||||
export { OverrideHost } from './OverrideHost.jsx'
|
||||
export { SALES_POINTS, IN_PERSON, DIGITAL, normalizeSalesPoints } from './salesPoints.js'
|
||||
export { ALLERGENS, ALLERGEN_LEVELS, allergenList, nextAllergenLevel, setAllergen } from './allergens.js'
|
||||
export { Allergens } from './Allergens.jsx'
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
// The allergen list and its helpers (plan step 6.3).
|
||||
import { test } from 'node:test'
|
||||
import assert from 'node:assert/strict'
|
||||
import { ALLERGENS, allergenList, nextAllergenLevel, setAllergen } from '../src/allergens.js'
|
||||
|
||||
test('the 14 EU allergens', () => {
|
||||
assert.equal(ALLERGENS.length, 14)
|
||||
assert.equal(new Set(ALLERGENS).size, 14)
|
||||
})
|
||||
|
||||
test('what to show: contains first, then traces, in the list order', () => {
|
||||
assert.deepEqual(allergenList({ sesame: 'may_contain', milk: 'contains', gluten: 'contains', pollen: 'contains' }),
|
||||
[{ key: 'gluten', level: 'contains' }, { key: 'milk', level: 'contains' }, { key: 'sesame', level: 'may_contain' }])
|
||||
assert.deepEqual(allergenList(null), [])
|
||||
})
|
||||
|
||||
test('tapping cycles none → contains → may contain → none', () => {
|
||||
assert.equal(nextAllergenLevel(undefined), 'contains')
|
||||
assert.equal(nextAllergenLevel('contains'), 'may_contain')
|
||||
assert.equal(nextAllergenLevel('may_contain'), null)
|
||||
assert.deepEqual(setAllergen({ milk: 'contains' }, 'gluten', 'may_contain'), { gluten: 'may_contain', milk: 'contains' })
|
||||
assert.deepEqual(setAllergen({ milk: 'contains' }, 'milk', null), {})
|
||||
})
|
||||
@@ -76,5 +76,27 @@
|
||||
"name": "Online, με κράτηση",
|
||||
"hint": "Κράτηση online, το φαγητό έτοιμο με την άφιξη"
|
||||
}
|
||||
},
|
||||
"allergens": {
|
||||
"title": "Αλλεργιογόνα",
|
||||
"none": "Δεν έχουν δηλωθεί αλλεργιογόνα",
|
||||
"level": {
|
||||
"contains": "Περιέχει",
|
||||
"may_contain": "Μπορεί να περιέχει"
|
||||
},
|
||||
"gluten": "Γλουτένη",
|
||||
"crustaceans": "Καρκινοειδή",
|
||||
"eggs": "Αυγά",
|
||||
"fish": "Ψάρια",
|
||||
"peanuts": "Αράπικα φιστίκια",
|
||||
"soybeans": "Σόγια",
|
||||
"milk": "Γάλα",
|
||||
"nuts": "Ξηροί καρποί",
|
||||
"celery": "Σέλινο",
|
||||
"mustard": "Μουστάρδα",
|
||||
"sesame": "Σουσάμι",
|
||||
"sulphites": "Θειώδη",
|
||||
"lupin": "Λούπινο",
|
||||
"molluscs": "Μαλάκια"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,7 +115,8 @@
|
||||
"nest_has_children": "Κατηγορία με υποκατηγορίες δεν μπαίνει κάτω από άλλη.",
|
||||
"too_deep": "Οι κατηγορίες έχουν το πολύ δύο επίπεδα.",
|
||||
"own_parent": "Μια κατηγορία δεν μπορεί να είναι γονέας του εαυτού της.",
|
||||
"group_not_found": "Η ομάδα επιλογών δεν βρέθηκε."
|
||||
"group_not_found": "Η ομάδα επιλογών δεν βρέθηκε.",
|
||||
"allergen": "Άγνωστο αλλεργιογόνο ή επίπεδο: {{allergen}}."
|
||||
},
|
||||
"system": {
|
||||
"log_not_found": "Δεν υπάρχει αρχείο καταγραφής για {{date}}."
|
||||
|
||||
@@ -1523,5 +1523,285 @@
|
||||
"forceClose": "Αναγκαστικό κλείσιμο",
|
||||
"closeNow": "Κλείσε ημέρα"
|
||||
}
|
||||
},
|
||||
"products": {
|
||||
"title": "Προϊόντα",
|
||||
"categories": "Κατηγορίες",
|
||||
"searchCategories": "Αναζήτηση κατηγορίας…",
|
||||
"clear": "Καθαρισμός",
|
||||
"service": "Service",
|
||||
"all": "Όλα τα προϊόντα",
|
||||
"allOf": "Όλα",
|
||||
"uncategorized": "Χωρίς κατηγορία",
|
||||
"archived": "Αρχειοθετημένα",
|
||||
"archivedBadge": "Αρχείο",
|
||||
"search": "Αναζήτηση… (και με λατινικούς χαρακτήρες)",
|
||||
"filters": "Φίλτρα",
|
||||
"view": "Προβολή",
|
||||
"view_list": "Λίστα",
|
||||
"view_grid": "Πλέγμα",
|
||||
"new": "Νέο προϊόν",
|
||||
"price": "Τιμή",
|
||||
"from": "από",
|
||||
"to": "έως",
|
||||
"quality": "Ποιότητα δεδομένων",
|
||||
"qualityOf": {
|
||||
"all": "Όλα",
|
||||
"no-photo": "Χωρίς φωτό",
|
||||
"no-cat": "Χωρίς κατηγορία"
|
||||
},
|
||||
"show": "Εμφάνιση",
|
||||
"unavailableOnly": "Μόνο μη διαθέσιμα",
|
||||
"withArchived": "Και αρχειοθετημένα",
|
||||
"clearFilters": "Καθαρισμός",
|
||||
"clearSelection": "Καθαρισμός επιλογής",
|
||||
"selected_one": "{{count}} επιλεγμένο",
|
||||
"selected_other": "{{count}} επιλεγμένα",
|
||||
"selectAll": "Επιλογή όλων",
|
||||
"select": "Επιλογή: {{name}}",
|
||||
"totals": "{{active}} ενεργά · {{categories}} κατηγορίες · {{archived}} αρχείο",
|
||||
"none": "Δεν βρέθηκαν προϊόντα",
|
||||
"noneHint": "Δοκιμάστε διαφορετικά φίλτρα ή προσθέστε νέο προϊόν.",
|
||||
"makeAvailable": "Διαθέσιμα",
|
||||
"makeUnavailable": "Μη διαθέσιμα",
|
||||
"archive": "Αρχειοθέτηση",
|
||||
"delete": "Οριστική διαγραφή",
|
||||
"prepZone": "Ζώνη προετοιμασίας",
|
||||
"toCategory": "Κατηγορία",
|
||||
"updated_one": "{{count}} προϊόν ενημερώθηκε",
|
||||
"updated_other": "{{count}} προϊόντα ενημερώθηκαν",
|
||||
"available": "Διαθέσιμο",
|
||||
"unavailable": "Μη διαθέσιμο",
|
||||
"edit": "Επεξεργασία",
|
||||
"moveUp": "Μετακίνηση πάνω",
|
||||
"moveDown": "Μετακίνηση κάτω",
|
||||
"main": "κύρια",
|
||||
"mainHere": "Κύρια κατηγορία του",
|
||||
"alsoIn": "και στο {{name}}",
|
||||
"hasAllergens": "Έχουν δηλωθεί αλλεργιογόνα",
|
||||
"allergenCount_one": "{{count}} αλλεργιογόνο",
|
||||
"allergenCount_other": "{{count}} αλλεργιογόνα",
|
||||
"costOverPrice": "Κόστος > τιμή",
|
||||
"margin": "περιθώριο {{pct}}",
|
||||
"cancel": "Άκυρο",
|
||||
"save": "Αποθήκευση",
|
||||
"saved": "Αποθηκεύτηκε",
|
||||
"apply": "Εφαρμογή",
|
||||
"copyOf": "{{name}} (αντίγραφο)",
|
||||
"unit": {
|
||||
"piece": "Τεμάχιο",
|
||||
"portion": "Μερίδα",
|
||||
"kg": "Κιλό (kg)",
|
||||
"liter": "Λίτρο (L)",
|
||||
"gram": "Γραμμάριο (g)",
|
||||
"ml": "Χιλιοστόλιτρο (mL)"
|
||||
},
|
||||
"category": {
|
||||
"new": "Νέα κατηγορία",
|
||||
"newSub": "Νέα υποκατηγορία",
|
||||
"edit": "Επεξεργασία κατηγορίας",
|
||||
"editSub": "Επεξεργασία υποκατηγορίας",
|
||||
"delete": "Διαγραφή κατηγορίας",
|
||||
"under": "Κατηγορία: {{name}}",
|
||||
"name": "Όνομα",
|
||||
"colour": "Χρώμα",
|
||||
"saved": "Η κατηγορία αποθηκεύτηκε",
|
||||
"moveTitle": "Μετακίνηση κατηγορίας",
|
||||
"moving": "Κατηγορία: {{name}}",
|
||||
"newPlace": "Νέα θέση",
|
||||
"topLevel": "Κορυφαίο επίπεδο (ανεξάρτητη)",
|
||||
"move": "Μετακίνηση",
|
||||
"moved": "Η κατηγορία μετακινήθηκε"
|
||||
},
|
||||
"confirm": {
|
||||
"category": "Διαγραφή της κατηγορίας «{{name}}»;",
|
||||
"archive": "Αρχειοθέτηση του «{{name}}»;",
|
||||
"delete": "Οριστική διαγραφή του «{{name}}»;",
|
||||
"bulkArchive_one": "Αρχειοθέτηση {{count}} προϊόντος;",
|
||||
"bulkArchive_other": "Αρχειοθέτηση {{count}} προϊόντων;"
|
||||
},
|
||||
"confirmBody": {
|
||||
"category": "Τα προϊόντα της μένουν· όσα ήταν μόνο σε αυτή μένουν χωρίς κατηγορία.",
|
||||
"archive": "Φεύγει από τα μενού και κρατιέται για το ιστορικό. Επανέρχεται από το αρχείο.",
|
||||
"delete": "Χάνεται μόνιμα. Ένα προϊόν που έχει παραγγελθεί ποτέ μπορεί μόνο να αρχειοθετηθεί.",
|
||||
"bulkArchive": "Φεύγουν από τα μενού και κρατιούνται για το ιστορικό."
|
||||
},
|
||||
"confirmButton": {
|
||||
"category": "Διαγραφή",
|
||||
"archive": "Αρχειοθέτηση",
|
||||
"delete": "Διαγραφή",
|
||||
"bulkArchive": "Αρχειοθέτηση"
|
||||
},
|
||||
"done": {
|
||||
"category": "Η κατηγορία διαγράφηκε",
|
||||
"archive": "Αρχειοθετήθηκε",
|
||||
"delete": "Διαγράφηκε",
|
||||
"bulkArchive": "Αρχειοθετήθηκαν"
|
||||
},
|
||||
"bulkZones": {
|
||||
"title": "Ζώνες προετοιμασίας",
|
||||
"body_one": "Θα οριστεί σε {{count}} προϊόν.",
|
||||
"body_other": "Θα οριστεί σε {{count}} προϊόντα.",
|
||||
"done_one": "Ζώνες προετοιμασίας ορίστηκαν σε {{count}} προϊόν",
|
||||
"done_other": "Ζώνες προετοιμασίας ορίστηκαν σε {{count}} προϊόντα"
|
||||
},
|
||||
"bulkCategory": {
|
||||
"title": "Κατηγορία",
|
||||
"body_one": "Για {{count}} προϊόν.",
|
||||
"body_other": "Για {{count}} προϊόντα.",
|
||||
"move": "Μετακίνηση σε",
|
||||
"moveHint": "Γίνεται η μόνη (και κύρια) κατηγορία τους.",
|
||||
"add": "Και στην κατηγορία",
|
||||
"addHint": "Προστίθεται σε όσες έχουν· η κύρια μένει ίδια.",
|
||||
"which": "Επιλέξτε κατηγορία…",
|
||||
"done_one": "{{count}} προϊόν ενημερώθηκε",
|
||||
"done_other": "{{count}} προϊόντα ενημερώθηκαν"
|
||||
},
|
||||
"editor": {
|
||||
"newTitle": "Νέο προϊόν",
|
||||
"editTitle": "Επεξεργασία: {{name}}",
|
||||
"copy": "Αντιγραφή",
|
||||
"create": "Δημιουργία",
|
||||
"left": {
|
||||
"info": "Πληροφορίες",
|
||||
"soldAt": "Πού πωλείται",
|
||||
"cost": "Κόστος",
|
||||
"fiscal": "Ταμειακή"
|
||||
},
|
||||
"serviceItem": "Service item",
|
||||
"serviceHint": "Μαχαιροπίρουνα, ποτήρια, κουβέρ: τυπώνεται σε ξεχωριστή ενότητα SERVICE.",
|
||||
"servicePaid": "Τυπώνεται σε ξεχωριστή ενότητα SERVICE. Καταγράφεται στα έσοδα.",
|
||||
"serviceFree": "Τυπώνεται μία φορά: δεν αποθηκεύεται στην παραγγελία, δεν καταγράφεται στα έσοδα.",
|
||||
"name": "Όνομα",
|
||||
"namePlaceholder": "π.χ. Espresso",
|
||||
"servicePlaceholder": "π.χ. Σερβίτσιο",
|
||||
"description": "Περιγραφή (προαιρετική)",
|
||||
"descriptionHint": "Χρήσιμο για ψηφιακό μενού ή ενημέρωση σερβιτόρων.",
|
||||
"tags": "Tags (προαιρετικά)",
|
||||
"tagsHint": "Πάτα Enter ή κόμμα για να προσθέσεις tag.",
|
||||
"tagsPlaceholder": "π.χ. vegan, πικάντικο",
|
||||
"removeTag": "Αφαίρεση {{tag}}",
|
||||
"unit": "Μονάδα μέτρησης",
|
||||
"unitWeighed": "Η ποσότητα θα εισάγεται ως δεκαδικός αριθμός στην εφαρμογή σερβιτόρων.",
|
||||
"price": "Βασική τιμή",
|
||||
"priceOptional": "Τιμή (προαιρετική)",
|
||||
"less": "Λιγότερο",
|
||||
"more": "Περισσότερο",
|
||||
"categories": "Κατηγορίες",
|
||||
"categoriesTip": "Ένα προϊόν μπορεί να είναι σε πολλές κατηγορίες (ένας freddo στους Καφέδες και στο Πρωινό)· εμφανίζεται σε καθεμία και κάθε λίστα έχει τη δική της σειρά. Η κύρια ορίζει πού τυπώνεται στα δελτία και πώς το ομαδοποιούν οι αναφορές.",
|
||||
"noCategory": "Δεν είναι ακόμα σε κατηγορία.",
|
||||
"main": "Κύρια",
|
||||
"makeMain": "Ορισμός ως κύρια κατηγορία",
|
||||
"removeCategory": "Αφαίρεση από την κατηγορία",
|
||||
"addCategory": "Προσθήκη κατηγορίας…",
|
||||
"prepZones": "Ζώνες προετοιμασίας",
|
||||
"prepZonesTip": "Πού ετοιμάζεται: τα δελτία του τυπώνονται στους εκτυπωτές αυτών των ζωνών και εμφανίζονται στις οθόνες κουζίνας τους.",
|
||||
"noZones": "Δεν υπάρχουν ζώνες.",
|
||||
"makeZone": "Δημιουργήστε μια ζώνη",
|
||||
"allergensTip": "Τα 14 αλλεργιογόνα που ο κανονισμός ΕΕ 1169/2011 ζητά να δηλώνονται. Το «Μπορεί να περιέχει» είναι για ίχνη, π.χ. ίδια κουζίνα. Εμφανίζονται στα κινητά των σερβιτόρων, στο ταμείο, στα tablet μενού και στα online μενού.",
|
||||
"allergensHint": "Ένα πάτημα: περιέχει · δύο: μπορεί να περιέχει · ξανά: τίποτα.",
|
||||
"allergenNone": "δεν δηλώθηκε",
|
||||
"traces": "ίχνη",
|
||||
"available": "Διαθέσιμο",
|
||||
"availableHint": "Ανενεργό: δεν παραγγέλνεται τώρα (εξαντλήθηκε)· μένει στα μενού.",
|
||||
"quickAdd": "Quick Add",
|
||||
"quickAddHint": "Ο σερβιτόρος το προσθέτει με ένα πάτημα, χωρίς την οθόνη επιλογών.",
|
||||
"soldAt": "Πού πωλείται",
|
||||
"soldAtHint": "Όπου δεν είναι επιλεγμένο, το προϊόν δεν εμφανίζεται και δεν γίνεται δεκτό σε παραγγελίες.",
|
||||
"pricePerPoint": "Διαφορετική τιμή ανά σημείο πώλησης (π.χ. φθηνότερο σε πακέτο): Τιμολόγηση → Τροποποιητές, με συνθήκη «Κανάλι παραγγελίας».",
|
||||
"online": "QR μενού και online",
|
||||
"orderableNow": "Διαθέσιμο για παραγγελία τώρα",
|
||||
"orderableNowHint": "Ανενεργό: εμφανίζεται ως «Εξαντλήθηκε».",
|
||||
"forCustomers": "Εμφάνιση στους πελάτες",
|
||||
"forCustomersHint": "Αφήστε κενό για να χρησιμοποιηθούν τα στοιχεία του προϊόντος.",
|
||||
"customerName": "Όνομα",
|
||||
"customerDescription": "Περιγραφή",
|
||||
"customerImage": "Διεύθυνση εικόνας",
|
||||
"costHint": "Το κόστος καταγράφεται σε κάθε παραγγελία για τον υπολογισμό κέρδους.",
|
||||
"costMode": "Τύπος κόστους",
|
||||
"cost": {
|
||||
"simple": "Απλό",
|
||||
"detailed": "Ανάλυση"
|
||||
},
|
||||
"costPerUnit": "Κόστος ανά μονάδα",
|
||||
"costLinePlaceholder": "π.χ. Γάλα",
|
||||
"addCostLine": "Γραμμή κόστους",
|
||||
"costTotal": "Σύνολο {{total}}",
|
||||
"fiscalHint": "Τα πεδία αυτά χρησιμοποιούνται κατά την αυτόματη αποστολή αποδείξεων στη ΦΗΜ.",
|
||||
"fiscalName": "Όνομα ΦΗΜ (προαιρετικό)",
|
||||
"fiscalNameHint": "Σύντομο όνομα για την απόδειξη. Αν αφεθεί κενό, χρησιμοποιείται το κανονικό όνομα.",
|
||||
"vatGroup": "Ομάδα ΦΠΑ ΦΗΜ",
|
||||
"vatGroupNeeded": "Απαιτείται για πληρωμή με ΦΗΜ ενεργή.",
|
||||
"noVatGroups": "Δεν έχουν οριστεί ομάδες ΦΠΑ: Ρυθμίσεις → Ταμειακή.",
|
||||
"noVatGroup": "Χωρίς ανάθεση",
|
||||
"tab": {
|
||||
"favourites": "Αγαπημένα",
|
||||
"quick": "Γρήγορες",
|
||||
"ingredients": "Υλικά",
|
||||
"options": "Έξτρα"
|
||||
},
|
||||
"prefN": "Προτ. {{n}}",
|
||||
"addPref": "Προτίμηση",
|
||||
"addPrefGroup": "Ομάδα",
|
||||
"newGroup": "Νέα ομάδα",
|
||||
"favouritesHint": "Τα αγαπημένα εμφανίζονται πρώτα στον σερβιτόρο, με αυτή τη σειρά. Πατήστε την καρδιά στις άλλες καρτέλες.",
|
||||
"noFavourites": "Δεν υπάρχουν αγαπημένα.",
|
||||
"unnamed": "(χωρίς όνομα)",
|
||||
"kind": {
|
||||
"quick": "Γρήγορη",
|
||||
"ingredient": "Υλικό",
|
||||
"option": "Έξτρα",
|
||||
"pref": "Προτίμηση"
|
||||
},
|
||||
"remove": "Αφαίρεση",
|
||||
"favourite": "Στα αγαπημένα",
|
||||
"unfavourite": "Αφαίρεση από τα αγαπημένα",
|
||||
"default": "Προεπιλογή",
|
||||
"extraCost": "Τιμή",
|
||||
"multiple": "Πολλαπλά",
|
||||
"multiSelect": "Multi-select",
|
||||
"compact": "Compact",
|
||||
"group": "Ομάδα",
|
||||
"noGroup": "Χωρίς ομάδα",
|
||||
"addGroup": "Ομάδα",
|
||||
"emptyGroup": "Κενή ομάδα: επιλέξτε την από κάθε γραμμή.",
|
||||
"unnamedGroup": "(ομάδα χωρίς όνομα)",
|
||||
"renameGroup": "Μετονομασία ομάδας",
|
||||
"removeGroup": "Διαγραφή ομάδας (οι γραμμές μένουν)",
|
||||
"quickHint": "Γρήγορες επιλογές με τιμή.",
|
||||
"addQuick": "Επιλογή",
|
||||
"noQuick": "Δεν υπάρχουν γρήγορες επιλογές.",
|
||||
"quickPlaceholder": "π.χ. Extra Bacon",
|
||||
"ingredientHint": "Υλικά που ο πελάτης μπορεί να αφαιρέσει.",
|
||||
"ingredientPlaceholder": "Όνομα υλικού",
|
||||
"optionHint": "Έξτρα (checkbox). Κάθε έξτρα μπορεί να έχει υπο-επιλογές.",
|
||||
"optionPlaceholder": "π.χ. Κανέλα",
|
||||
"add": {
|
||||
"ingredient": "Υλικό",
|
||||
"option": "Έξτρα"
|
||||
},
|
||||
"none": {
|
||||
"ingredient": "Δεν υπάρχουν υλικά.",
|
||||
"option": "Δεν υπάρχουν έξτρα."
|
||||
},
|
||||
"addSubs": "Υπο-επιλογές",
|
||||
"addSub": "Υπο-επιλογή",
|
||||
"subsOf": "Υπο-επιλογές του «{{name}}»",
|
||||
"subPlaceholder": "π.χ. Καραμέλα",
|
||||
"prefPlaceholder": "π.χ. Ζάχαρη",
|
||||
"removePref": "Διαγραφή",
|
||||
"prefGroups": "Ομάδες προτιμήσεων",
|
||||
"multiChoice": "Πολλαπλή επιλογή",
|
||||
"choiceQuantity": "Ποσότητα ανά επιλογή",
|
||||
"prefLegend": "● = προεπιλογή · «Κρύβει το κοινό» = αυτή η επιλογή δεν το δείχνει",
|
||||
"choicePlaceholder": "π.χ. Σκέτος",
|
||||
"hidesShared": "Κρύβει το κοινό",
|
||||
"addChoice": "Επιλογή",
|
||||
"shared": "Κοινό υπο-σύνολο",
|
||||
"sharedHint": "Εμφανίζεται για όλες εκτός όσων το κρύβουν.",
|
||||
"addShared": "Κοινό υπο-σύνολο",
|
||||
"sharedName": "Όνομα κοινού υπο-συνόλου",
|
||||
"sharedPlaceholder": "π.χ. Είδος ζάχαρης"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,5 +76,27 @@
|
||||
"name": "Online, with a reservation",
|
||||
"hint": "Reserved online, food ready on arrival"
|
||||
}
|
||||
},
|
||||
"allergens": {
|
||||
"title": "Allergens",
|
||||
"none": "No allergens declared",
|
||||
"level": {
|
||||
"contains": "Contains",
|
||||
"may_contain": "May contain"
|
||||
},
|
||||
"gluten": "Gluten",
|
||||
"crustaceans": "Crustaceans",
|
||||
"eggs": "Eggs",
|
||||
"fish": "Fish",
|
||||
"peanuts": "Peanuts",
|
||||
"soybeans": "Soya",
|
||||
"milk": "Milk",
|
||||
"nuts": "Nuts",
|
||||
"celery": "Celery",
|
||||
"mustard": "Mustard",
|
||||
"sesame": "Sesame",
|
||||
"sulphites": "Sulphites",
|
||||
"lupin": "Lupin",
|
||||
"molluscs": "Molluscs"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,7 +115,8 @@
|
||||
"nest_has_children": "A category with sub-categories can't go under another one.",
|
||||
"too_deep": "Categories go at most two levels deep.",
|
||||
"own_parent": "A category can't be its own parent.",
|
||||
"group_not_found": "Option group not found."
|
||||
"group_not_found": "Option group not found.",
|
||||
"allergen": "Unknown allergen or level: {{allergen}}."
|
||||
},
|
||||
"system": {
|
||||
"log_not_found": "There is no log file for {{date}}."
|
||||
|
||||
@@ -1523,5 +1523,285 @@
|
||||
"forceClose": "Force the close",
|
||||
"closeNow": "Close the day"
|
||||
}
|
||||
},
|
||||
"products": {
|
||||
"title": "Products",
|
||||
"categories": "Categories",
|
||||
"searchCategories": "Search categories…",
|
||||
"clear": "Clear",
|
||||
"service": "Service",
|
||||
"all": "All products",
|
||||
"allOf": "All",
|
||||
"uncategorized": "Without a category",
|
||||
"archived": "Archived",
|
||||
"archivedBadge": "Archive",
|
||||
"search": "Search… (Latin letters find Greek names too)",
|
||||
"filters": "Filters",
|
||||
"view": "View",
|
||||
"view_list": "List",
|
||||
"view_grid": "Grid",
|
||||
"new": "New product",
|
||||
"price": "Price",
|
||||
"from": "from",
|
||||
"to": "to",
|
||||
"quality": "Missing data",
|
||||
"qualityOf": {
|
||||
"all": "All",
|
||||
"no-photo": "No photo",
|
||||
"no-cat": "No category"
|
||||
},
|
||||
"show": "Show",
|
||||
"unavailableOnly": "Unavailable only",
|
||||
"withArchived": "Archived too",
|
||||
"clearFilters": "Clear filters",
|
||||
"clearSelection": "Clear the selection",
|
||||
"selected_one": "{{count}} selected",
|
||||
"selected_other": "{{count}} selected",
|
||||
"selectAll": "Select all",
|
||||
"select": "Select {{name}}",
|
||||
"totals": "{{active}} active · {{categories}} categories · {{archived}} archived",
|
||||
"none": "No products found",
|
||||
"noneHint": "Try other filters or add a product.",
|
||||
"makeAvailable": "Available",
|
||||
"makeUnavailable": "Unavailable",
|
||||
"archive": "Archive",
|
||||
"delete": "Delete for good",
|
||||
"prepZone": "Prep zones",
|
||||
"toCategory": "Category",
|
||||
"updated_one": "{{count}} product updated",
|
||||
"updated_other": "{{count}} products updated",
|
||||
"available": "Available",
|
||||
"unavailable": "Unavailable",
|
||||
"edit": "Edit",
|
||||
"moveUp": "Move up",
|
||||
"moveDown": "Move down",
|
||||
"main": "main",
|
||||
"mainHere": "Its main category",
|
||||
"alsoIn": "also in {{name}}",
|
||||
"hasAllergens": "Allergens declared",
|
||||
"allergenCount_one": "{{count}} allergen",
|
||||
"allergenCount_other": "{{count}} allergens",
|
||||
"costOverPrice": "Cost above price",
|
||||
"margin": "{{pct}} margin",
|
||||
"cancel": "Cancel",
|
||||
"save": "Save",
|
||||
"saved": "Saved",
|
||||
"apply": "Apply",
|
||||
"copyOf": "{{name}} (copy)",
|
||||
"unit": {
|
||||
"piece": "Piece",
|
||||
"portion": "Portion",
|
||||
"kg": "Kilo (kg)",
|
||||
"liter": "Litre (L)",
|
||||
"gram": "Gram (g)",
|
||||
"ml": "Millilitre (mL)"
|
||||
},
|
||||
"category": {
|
||||
"new": "New category",
|
||||
"newSub": "New sub-category",
|
||||
"edit": "Edit category",
|
||||
"editSub": "Edit sub-category",
|
||||
"delete": "Delete category",
|
||||
"under": "Under {{name}}",
|
||||
"name": "Name",
|
||||
"colour": "Colour",
|
||||
"saved": "Category saved",
|
||||
"moveTitle": "Move category",
|
||||
"moving": "Category: {{name}}",
|
||||
"newPlace": "New place",
|
||||
"topLevel": "Top level (on its own)",
|
||||
"move": "Move",
|
||||
"moved": "The category moved"
|
||||
},
|
||||
"confirm": {
|
||||
"category": "Delete the category \"{{name}}\"?",
|
||||
"archive": "Archive \"{{name}}\"?",
|
||||
"delete": "Delete \"{{name}}\" for good?",
|
||||
"bulkArchive_one": "Archive {{count}} product?",
|
||||
"bulkArchive_other": "Archive {{count}} products?"
|
||||
},
|
||||
"confirmBody": {
|
||||
"category": "Its products stay; those that were only in it end up without a category.",
|
||||
"archive": "It leaves the menus and is kept for the order history. You can bring it back from the archive.",
|
||||
"delete": "It is gone for good. A product that was ever ordered can only be archived.",
|
||||
"bulkArchive": "They leave the menus and are kept for the order history."
|
||||
},
|
||||
"confirmButton": {
|
||||
"category": "Delete",
|
||||
"archive": "Archive",
|
||||
"delete": "Delete",
|
||||
"bulkArchive": "Archive"
|
||||
},
|
||||
"done": {
|
||||
"category": "Category deleted",
|
||||
"archive": "Archived",
|
||||
"delete": "Deleted",
|
||||
"bulkArchive": "Archived"
|
||||
},
|
||||
"bulkZones": {
|
||||
"title": "Prep zones",
|
||||
"body_one": "For {{count}} product.",
|
||||
"body_other": "For {{count}} products.",
|
||||
"done_one": "Prep zones set for {{count}} product",
|
||||
"done_other": "Prep zones set for {{count}} products"
|
||||
},
|
||||
"bulkCategory": {
|
||||
"title": "Category",
|
||||
"body_one": "For {{count}} product.",
|
||||
"body_other": "For {{count}} products.",
|
||||
"move": "Move to",
|
||||
"moveHint": "It becomes their only category (and their main one).",
|
||||
"add": "Also list in",
|
||||
"addHint": "Added to the categories they have; their main one stays.",
|
||||
"which": "Choose a category…",
|
||||
"done_one": "{{count}} product updated",
|
||||
"done_other": "{{count}} products updated"
|
||||
},
|
||||
"editor": {
|
||||
"newTitle": "New product",
|
||||
"editTitle": "Edit: {{name}}",
|
||||
"copy": "Copy",
|
||||
"create": "Create",
|
||||
"left": {
|
||||
"info": "Details",
|
||||
"soldAt": "Where it's sold",
|
||||
"cost": "Cost",
|
||||
"fiscal": "Fiscal"
|
||||
},
|
||||
"serviceItem": "Service item",
|
||||
"serviceHint": "Cutlery, glasses, a cover charge: printed in its own SERVICE section.",
|
||||
"servicePaid": "Printed in its own SERVICE section and counted in the takings.",
|
||||
"serviceFree": "Printed once: not kept on the order, not counted in the takings.",
|
||||
"name": "Name",
|
||||
"namePlaceholder": "e.g. Espresso",
|
||||
"servicePlaceholder": "e.g. Cutlery",
|
||||
"description": "Description (optional)",
|
||||
"descriptionHint": "For the menus and to tell the waiters.",
|
||||
"tags": "Tags (optional)",
|
||||
"tagsHint": "Enter or a comma adds a tag.",
|
||||
"tagsPlaceholder": "e.g. vegan, spicy",
|
||||
"removeTag": "Remove {{tag}}",
|
||||
"unit": "Unit",
|
||||
"unitWeighed": "The waiters type the quantity as a decimal (e.g. 0,35).",
|
||||
"price": "Price",
|
||||
"priceOptional": "Price (optional)",
|
||||
"less": "Less",
|
||||
"more": "More",
|
||||
"categories": "Categories",
|
||||
"categoriesTip": "A product can be listed in several categories (a freddo under Coffees and Breakfast); it shows in each and each list has its own order. The main one decides where it prints on tickets and how reports group it.",
|
||||
"noCategory": "Not in any category yet.",
|
||||
"main": "Main",
|
||||
"makeMain": "Make it the main category",
|
||||
"removeCategory": "Remove from this category",
|
||||
"addCategory": "Add a category…",
|
||||
"prepZones": "Prep zones",
|
||||
"prepZonesTip": "Where it's made: its tickets print at these zones' printers and show on their kitchen screens.",
|
||||
"noZones": "No prep zones yet.",
|
||||
"makeZone": "Create one",
|
||||
"allergensTip": "The 14 allergens EU law (Reg. 1169/2011) asks a venue to declare. \"May contain\" is for traces, e.g. made in the same kitchen. They show on the waiters' phones, the counter, the menu tablets and the online menus.",
|
||||
"allergensHint": "Tap once: contains · twice: may contain · again: none.",
|
||||
"allergenNone": "not declared",
|
||||
"traces": "traces",
|
||||
"available": "Available",
|
||||
"availableHint": "Off: it can't be ordered now (sold out); it stays on the menus.",
|
||||
"quickAdd": "Quick add",
|
||||
"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\".",
|
||||
"online": "QR menu and online",
|
||||
"orderableNow": "Can be ordered now",
|
||||
"orderableNowHint": "Off: the customer apps show it as sold out.",
|
||||
"forCustomers": "What customers see",
|
||||
"forCustomersHint": "Leave empty to use the product's own.",
|
||||
"customerName": "Name",
|
||||
"customerDescription": "Description",
|
||||
"customerImage": "Picture address",
|
||||
"costHint": "The cost is copied onto every order, for the profit in the reports.",
|
||||
"costMode": "How the cost is entered",
|
||||
"cost": {
|
||||
"simple": "One amount",
|
||||
"detailed": "Itemised"
|
||||
},
|
||||
"costPerUnit": "Cost per unit",
|
||||
"costLinePlaceholder": "e.g. Milk",
|
||||
"addCostLine": "Cost line",
|
||||
"costTotal": "Total {{total}}",
|
||||
"fiscalHint": "Used when receipts are sent to the fiscal device by themselves.",
|
||||
"fiscalName": "Name on the receipt (optional)",
|
||||
"fiscalNameHint": "A short name for the receipt; empty: the product's name.",
|
||||
"vatGroup": "VAT group",
|
||||
"vatGroupNeeded": "Needed to take payments while fiscal receipts are on.",
|
||||
"noVatGroups": "No VAT groups yet: Settings → Fiscal.",
|
||||
"noVatGroup": "Not assigned",
|
||||
"tab": {
|
||||
"favourites": "Favourites",
|
||||
"quick": "Quick",
|
||||
"ingredients": "Ingredients",
|
||||
"options": "Extras"
|
||||
},
|
||||
"prefN": "Pref. {{n}}",
|
||||
"addPref": "Preference",
|
||||
"addPrefGroup": "Group",
|
||||
"newGroup": "New group",
|
||||
"favouritesHint": "Favourites show first to the waiter, in this order. Tap a heart in the other tabs to add one.",
|
||||
"noFavourites": "No favourites.",
|
||||
"unnamed": "(no name)",
|
||||
"kind": {
|
||||
"quick": "Quick",
|
||||
"ingredient": "Ingredient",
|
||||
"option": "Extra",
|
||||
"pref": "Preference"
|
||||
},
|
||||
"remove": "Remove",
|
||||
"favourite": "Make it a favourite",
|
||||
"unfavourite": "Remove from favourites",
|
||||
"default": "Chosen by default",
|
||||
"extraCost": "Price",
|
||||
"multiple": "Several",
|
||||
"multiSelect": "Several sub-choices",
|
||||
"compact": "Compact",
|
||||
"group": "Group",
|
||||
"noGroup": "No group",
|
||||
"addGroup": "Group",
|
||||
"emptyGroup": "Nothing in this group: pick it on a row.",
|
||||
"unnamedGroup": "(unnamed group)",
|
||||
"renameGroup": "Rename the group",
|
||||
"removeGroup": "Remove the group (its rows stay)",
|
||||
"quickHint": "One-tap add-ons with a price.",
|
||||
"addQuick": "Quick choice",
|
||||
"noQuick": "No quick choices.",
|
||||
"quickPlaceholder": "e.g. Extra bacon",
|
||||
"ingredientHint": "What the guest can leave out.",
|
||||
"ingredientPlaceholder": "Ingredient",
|
||||
"optionHint": "Ticked add-ons; each can have sub-choices.",
|
||||
"optionPlaceholder": "e.g. Cinnamon",
|
||||
"add": {
|
||||
"ingredient": "Ingredient",
|
||||
"option": "Extra"
|
||||
},
|
||||
"none": {
|
||||
"ingredient": "No ingredients.",
|
||||
"option": "No extras."
|
||||
},
|
||||
"addSubs": "Sub-choices",
|
||||
"addSub": "Sub-choice",
|
||||
"subsOf": "Sub-choices of \"{{name}}\"",
|
||||
"subPlaceholder": "e.g. Caramel",
|
||||
"prefPlaceholder": "e.g. Sugar",
|
||||
"removePref": "Delete",
|
||||
"prefGroups": "Preference groups",
|
||||
"multiChoice": "Several can be chosen",
|
||||
"choiceQuantity": "A quantity per choice",
|
||||
"prefLegend": "● = chosen by default · \"Hides the shared set\" = that choice doesn't offer it",
|
||||
"choicePlaceholder": "e.g. No sugar",
|
||||
"hidesShared": "Hides the shared set",
|
||||
"addChoice": "Choice",
|
||||
"shared": "Shared sub-set",
|
||||
"sharedHint": "Offered with every choice except those that hide it.",
|
||||
"addShared": "Shared sub-set",
|
||||
"sharedName": "Name of the shared sub-set",
|
||||
"sharedPlaceholder": "e.g. Kind of sugar"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user