feat(manager): online ordering settings in tabs beside Test an order; expense lines and documents

- Online orders -> Settings: takeaway / delivery / any time side by side (wrapping, with room),
  the days of the week apart; fee rules, delivery areas and fee settings (the fee line) as tabs
  on the left, Test an order on the right; a rule's switch at the far right, equal padding,
  'Order price from' / 'Total items count from' in the rule editor.
- Expenses: the dialog lists what was bought (quantity, price before VAT, VAT; they make the
  total, with net / VAT / total) and keeps documents (attach a PDF or photo, open, remove;
  picked for a new expense, uploaded when it's saved); a paperclip in the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 14:57:58 +02:00
co-authored by Claude Opus 5.5
parent 9297cbcd3b
commit f3fc3340d2
10 changed files with 318 additions and 87 deletions
+26 -7
View File
@@ -777,6 +777,8 @@
"fees": {
"title": "Delivery areas and fees",
"intro": "Fees for online orders, looked at from the top: every rule whose conditions hold changes the fee, or refuses the order below a minimum. The customer sees the fee before ordering, and the online checkout charges exactly what \"Test an order\" shows. Without rules there is no fee.",
"settings": "Fee settings",
"noSettings": "The delivery fee line is not set up.",
"rules": "Fee rules",
"addRule": "Add a rule",
"editRule": "Edit rule",
@@ -810,9 +812,9 @@
"stopShort": "stop here",
"cond": {
"areas": "area {{names}}",
"subtotalBetween": "products {{minMoney}} to under {{maxMoney}}",
"subtotalFrom": "products {{minMoney}} or more",
"subtotalBelow": "products under {{maxMoney}}",
"subtotalBetween": "order price {{minMoney}} to under {{maxMoney}}",
"subtotalFrom": "order price {{minMoney}} or more",
"subtotalBelow": "order price under {{maxMoney}}",
"itemsBetween": "{{min}} to {{max}} items",
"itemsFrom": "{{min}} items or more",
"itemsUpTo": "up to {{max}} items",
@@ -853,10 +855,10 @@
"conditions": "Only when (all that you fill in)",
"conditionsHint": "Leave empty for always.",
"onlyAreas": "Delivery areas",
"subtotalMin": "Products from (€)",
"subtotalMax": "Products under (€)",
"itemsMin": "Items from",
"itemsMax": "Items up to",
"subtotalMin": "Order price from (€)",
"subtotalMax": "Order price under (€)",
"itemsMin": "Total items count from",
"itemsMax": "Total items count up to",
"onlyDays": "Days",
"timeFrom": "From",
"timeTo": "Until",
@@ -3533,6 +3535,23 @@
"payYes": "Record the payment",
"paidAll": "{{amount}} paid: nothing more is due",
"paidPart": "{{amount}} paid: {{due}} still due",
"amountFromLines": "The lines add up to it.",
"lines": "What was bought",
"addLine": "Add a line",
"noLines": "No lines: the total is typed above. Add lines to list what was bought (with VAT); they make the total.",
"lineWhat": "Item",
"lineQty": "Quantity",
"linePrice": "Price (before VAT)",
"lineVat": "VAT",
"lineTotal": "Total",
"removeLine": "Remove the line",
"net": "Before VAT",
"vat": "VAT",
"documents": "Documents",
"addDocument": "Attach a PDF or photo",
"noDocuments": "No documents. Attach the invoice (PDF) or a photo of the receipt.",
"uploadOnSave": "uploaded when you save",
"removeDocument": "Remove {{name}}",
"wrong": {
"description": "Say what it is.",
"total_amount": "Enter an amount above zero.",