feat: pricing on v2 (platform-v2 step 6.7)

- manager src/pages/pricing: price rules, price groups, deals, discounts on the tokens,
  English and Greek; the rules as data in pricingLogic.js (tests/pricing.test.mjs)
- routers/pricing: set-up needs pricing.manage, broadcasts pricing.changed; incomplete
  conditions refused (pricing.bad_condition); venue discount settings saved again (the
  date-as-text bug) with empty = no limit (pricing.bad_limit), old "None" tolerated
- nav: Offers & pricing needs pricing.manage
- tests: test_pricing_setup.py (a happy-hour rule prices a counter quote), manager.mjs e2e

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 15:40:51 +02:00
co-authored by Claude Opus 5.5
parent c1af7770cf
commit fd3254aa31
28 changed files with 2040 additions and 2118 deletions
+4
View File
@@ -325,5 +325,9 @@
"waste": {
"not_found": "Throwaway entry not found.",
"not_today": "Only throwaways of the open business day can be deleted."
},
"pricing": {
"bad_limit": "A discount limit must be a number of 0 or more, or empty for no limit.",
"bad_condition": "A condition is incomplete: fill in all its values."
}
}