Files
bonaminandClaude Opus 5.5 096bd53dbd feat(backend,manager): the business day opens and closes by itself (opening hours, a time, or only an alert)
- services/day_auto.py: a minute loop (venue time, offline) opens the day when the opening
  hours start (or at business_day.auto_open_time) and closes it when they end (or at
  auto_close_time); 'alert' only tells the managers. Offsets before / after, one day across
  the break or one per span, spans past midnight belong to the day they start, a day closed
  by hand isn't reopened in the same span, a restart catches up the open (until the business
  date changes for 'time') and alerts a missed close instead of doing it late.
- The close runs only when no order of the day is unclosed (Q-10): otherwise a sticky alert
  and a new try every 15 minutes. A locked / expired license turns the open into an alert.
- Sticky notifications: notifications.resolved_at + core.notifications.resolve(); the
  alerts resolve when the day opens / closes (by hand or by itself).
- services/business_days.py: the one open / close path (the routes and the loop); days opened
  or closed by the system have no opener / closer and opened_auto / closed_auto (Alembic 0052).
- Manager: Settings -> Operation "Opening and closing the day"; the bell's action buttons
  ("Open now", "Go to the overview"); Reports -> Days marks days opened / closed by itself.

Plan platform-v2 6F.8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:17:15 +02:00

120 lines
5.9 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.
{
"print": {
"aligned": {
"order": "Παραγγελια: #{value}",
"table": "Τραπεζι: {value}",
"time": "Ωρα: {value}"
},
"cancel": {
"banner": "*** AKYPΩΣH ***"
},
"receipt": {
"closed": "Εκλεισε: {value}",
"opened": "Ανοιχτηκε: {value}",
"order_title": "ΠΑΡΑΓΓΕΛΙΑ #{value}"
},
"report": {
"avg_duration": "Μ. διαρκεια: {minutes:.0f} λεπτα",
"categories_title": "ΑΝΑΦΟΡΑ ΚΑΤΗΓΟΡΙΩΝ",
"details": "ΑΝΑΛΥΤΙΚΑ",
"from": "Απο: {value}",
"grand_total": "ΣΥΝΟΛΟ ΟΛΩΝ",
"items": "Αντικειμενα: {value}",
"orders": "Παραγγελιες: {value}",
"pct_revenue": "% Εσοδων",
"pct_units": "% Τεμαχιων",
"period": "Περιοδος: {value}",
"prep_zone_title": "ΖΩΝΗ ΠΡΟΕΤΟΙΜΑΣΙΑΣ",
"print_jobs": "Εκτυπωσεις: {value}",
"printer": "Εκτυπωτης: {value}",
"printer_title": "ΑΝΑΦΟΡΑ ΕΚΤΥΠΩΤΗ",
"product_breakdown": "ΑΝΑΛΥΣΗ ΠΡΟΙΟΝΤΩΝ",
"product_shares": "{revenue:.2f}e | {rev}% εσ. {qty}% τεμ.",
"products_full_title": "ΠΛΗΡΗΣ ΑΝΑΛΥΣΗ ΠΡΟΙΟΝΤΩΝ",
"products_title": "ΑΝΑΦΟΡΑ ΠΡΟΙΟΝΤΩΝ",
"qty_units": "{value} τεμ.",
"revenue": "Εσοδα",
"table": "Τραπεζι: {value}",
"table_orders_avg": "{count} παρ. / μ.ο. {avg:.2f}e",
"tables_title": "ΑΝΑΦΟΡΑ ΤΡΑΠΕΖΙΩΝ",
"to": "Εως: {value}",
"total": "ΣΥΝΟΛΟ: {value:.2f}e",
"total_items": "Συνολο ειδων: {value}",
"total_qty": "Συνολο τεμ.: {value}",
"units": "Τεμαχια",
"value": "Αξια: {value:.2f}e",
"value_caps": "ΑΞΙΑ: {value:.2f}e",
"waiter": "Σερβιτορος: {value}",
"waiter_title": "ΑΝΑΦΟΡΑ ΣΕΡΒΙΤΟΡΟΥ",
"workday": "Εργασιμη: {value}"
},
"synopsis": {
"paid": "ΠΛΗΡΩΜΕΝΑ:",
"paid_total": "Πληρωμενο: {value:.2f}e",
"pending": "ΕΚΚΡΕΜΗ:",
"remaining": "Εκκρεμει: {value:.2f}e",
"title": "ΣΥΝΟΨΗ ΠΑΡΑΓΓΕΛΙΑΣ",
"split": "ΔΙΑΧΩΡΙΣΜΟΣ (ΕΞΟΦΛΕΙΤΑΙ ΑΠΟ ΤΑ ΜΕΡΗ):"
},
"ticket": {
"compact_guests": " | {count}ατ.",
"compact_header": "Παρ. #{order} | Τρ. {table} | {time} | {waiter}",
"date_label": "Ημερομηνια:",
"end": "Τελος Παραγγελιας",
"guests_label": "Ατομα:",
"note": "Σημ: {note}",
"order_title": "Παραγγελια #{order}",
"table_label": "Τραπεζι:",
"table_value": "Τραπεζι {table}",
"waiter_label": "Σερβιτορος:",
"without": "ΧΩΡΙΣ:",
"for_label": "Για:",
"asap": "Το συντομοτερο",
"online_label": "Online:",
"type": {
"delivery": "Διανομη",
"takeaway": "Παραλαβη",
"dine_in": "Τραπεζι",
"preorder": "Προπαραγγελια"
}
}
},
"notification": {
"license": {
"limit_reached": "Συμπληρώθηκε το όριο της άδειας: το {module} επιτρέπει {max} {limit}. Αναβαθμίστε την άδεια για περισσότερα.",
"expiring": "Η άδεια λήγει σε {days} ημέρες ({expires_at}). Ανανεώστε την για να κρατήσετε όλες τις λειτουργίες."
},
"support": {
"access_used": "Η υποστήριξη της Xenia συνδέθηκε στο κατάστημα (από {ip})."
},
"print": {
"failed_final": "Ένα δελτίο της παραγγελίας #{order_id} δεν τυπώθηκε ποτέ στον εκτυπωτή {printer} ({attempts} προσπάθειες).",
"failing": "Ένα δελτίο της παραγγελίας #{order_id} δεν έχει τυπωθεί ακόμα στον εκτυπωτή {printer} (αποτυχημένες προσπάθειες μέχρι τώρα: {attempts}· συνεχίζει να προσπαθεί). Ελέγξτε τον εκτυπωτή."
},
"business_day": {
"not_open": "Είναι {time} και η ημέρα δεν έχει ανοίξει.",
"open_blocked": "Η ημέρα δεν άνοιξε μόνη της στις {time}: η άδεια δεν το επιτρέπει ({reason}).",
"tables_open": "Είναι ώρα κλεισίματος ({time}) αλλά {count} παραγγελίες είναι ακόμα ανοιχτές. Η ημέρα κλείνει μόνη της μόλις κλείσουν.",
"not_closed": "Η ημέρα έπρεπε να κλείσει στις {time} και είναι ακόμα ανοιχτή."
}
},
"system_product": {
"delivery_fee": "Μεταφορικά",
"split_part": "Διαχωρισμός λογαριασμού"
},
"qr": {
"order_message": "Τραπέζι {table}: νέα παραγγελία από το QR μενού ({count} τεμ.), στάλθηκε στην κουζίνα.",
"sender": "QR μενού"
},
"tablet": {
"call_message": "Τραπεζι {table}: οι πελατες καλουν σερβιτορο.",
"sender": "Tablet μενου",
"order_sent": "Τραπέζι {table}: παραγγελία από το tablet ({count} τεμ.), στάλθηκε στην κουζίνα.",
"order_waiting": "Τραπέζι {table}: παραγγελία από το tablet ({count} τεμ.), επιβεβαιώστε τη στο τραπέζι.",
"bill_message": "Τραπέζι {table}: οι πελάτες ζητούν τον λογαριασμό."
},
"split": {
"part_name": "Μέρος λογαριασμού {n}/{of}"
}
}