feat: the venue and products reports on v2 (platform-v2 step 6.12b)
- Reports -> Venue (src/pages/reports/store): business days (revenue/profit trend, each day's times, orders, revenue, fees, refunds, cost, profit; a day opens with its orders and shifts, a shift opens the overview's shift dialog; the owner corrects a closing time, deletes an empty day or a shift), orders (filters by status, person, table; per-order products / fees / refunds), busy times (by hour, by weekday of the business date), trends (days, weeks, months, the 7-day average), tables (time at the table, per visit, revenue) - Reports -> Products (src/pages/reports/products): products (units, revenue, refunded, cost, profit, margin, waste, share; top 10 by revenue, units or profit) and categories (share bars, profit share) - kit: PrintDialog (receipt printer, summary / full, or print the page), TrendChart and BarList on tokens (no chart animation), printBody() - access: deleting a business day or a shift (which erases its orders) is owner-only (core.settings.manage; was any dashboard user) - v1 StorePage, ProductsReportPage and their seven views removed - tests: reports.test.mjs (+1), e2e manager.mjs (every tab, a day, products revenue = the backend's, Greek) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2787,6 +2787,141 @@
|
||||
"noCancels": "none",
|
||||
"orders_one": "{{count}} order today",
|
||||
"orders_other": "{{count}} orders today"
|
||||
},
|
||||
"back": "Back",
|
||||
"save": "Save",
|
||||
"cost": "Cost",
|
||||
"orders": "Orders",
|
||||
"person": "Person",
|
||||
"print": {
|
||||
"button": "Print",
|
||||
"title": "Print on a receipt printer",
|
||||
"kind": "What to print",
|
||||
"modes": {
|
||||
"smart": "Summary",
|
||||
"full": "Full"
|
||||
},
|
||||
"modesHint": {
|
||||
"smart": "Only what sold, most first.",
|
||||
"full": "Every product, unsold ones too."
|
||||
},
|
||||
"printer": "Printer",
|
||||
"noPrinters": "No printers (Settings → Printing).",
|
||||
"send": "Print",
|
||||
"sent": "Sent to the printer",
|
||||
"page": "Print this page",
|
||||
"back": "Back"
|
||||
},
|
||||
"store": {
|
||||
"title": "Venue",
|
||||
"tabs": {
|
||||
"days": "Business days",
|
||||
"orders": "Orders",
|
||||
"traffic": "Busy times",
|
||||
"trends": "Trends",
|
||||
"tables": "Tables"
|
||||
},
|
||||
"day": "Day",
|
||||
"hours": "Hours",
|
||||
"cancelled": "Cancelled",
|
||||
"staff": "Staff",
|
||||
"noDays": "No business days in this period.",
|
||||
"dayStatus": {
|
||||
"open": "Open",
|
||||
"closed": "Closed"
|
||||
},
|
||||
"daysCount_one": "{{count}} business day",
|
||||
"daysCount_other": "{{count}} business days",
|
||||
"daysTip": "Each day counts every order opened in it. Tap a day for its orders and shifts.",
|
||||
"revenueByDay": "Revenue by business day",
|
||||
"deleteDay": "Delete this day",
|
||||
"deleteDayTitle": "Delete the business day of {{day}}?",
|
||||
"deleteDayBody": "Only an empty day (no shifts) can be deleted. It can't be undone.",
|
||||
"deleteYes": "Delete for good",
|
||||
"dayDeleted": "Business day deleted",
|
||||
"dayTitle": "Business day · {{day}}",
|
||||
"dayTabs": {
|
||||
"orders_one": "{{count}} order",
|
||||
"orders_other": "{{count}} orders",
|
||||
"shifts_one": "{{count}} shift",
|
||||
"shifts_other": "{{count}} shifts"
|
||||
},
|
||||
"fixClose": "Correct the closing time",
|
||||
"closedAt": "Closed at (venue time)",
|
||||
"closeFixed": "Closing time corrected",
|
||||
"from": "From",
|
||||
"to": "To",
|
||||
"working": "working",
|
||||
"length": "Length",
|
||||
"collected": "Collected",
|
||||
"deleteShift": "Delete this shift",
|
||||
"deleteShiftTitle": "Delete the shift of {{name}}?",
|
||||
"deleteShiftBody": "The shift and every order that person opened during it are erased for good, and disappear from every report. Only for mistakes and tests.",
|
||||
"shiftDeleted": "Shift and its orders deleted",
|
||||
"anyStatus": "Any status",
|
||||
"anyone": "Anyone",
|
||||
"anyTable": "Any table",
|
||||
"cancelledLines": "Cancelled lines",
|
||||
"ordersCount_one": "{{count}} order · {{total}}",
|
||||
"ordersCount_other": "{{count}} orders · {{total}}"
|
||||
},
|
||||
"traffic": {
|
||||
"orders": "Orders",
|
||||
"busiestHour": "Busiest hour",
|
||||
"quietestHour": "Quietest hour",
|
||||
"quietTip": "of the hours with orders",
|
||||
"busiestDay": "Busiest weekday",
|
||||
"ordersN_one": "{{count}} order",
|
||||
"ordersN_other": "{{count}} orders",
|
||||
"byWeekday": "Revenue by weekday",
|
||||
"byWeekdayTip": "By the business date: an order at 01:30 on Saturday counts on Friday."
|
||||
},
|
||||
"trends": {
|
||||
"title": "Revenue over time",
|
||||
"table": "By period",
|
||||
"when": "Period",
|
||||
"steps": {
|
||||
"daily": "Days",
|
||||
"weekly": "Weeks",
|
||||
"monthly": "Months"
|
||||
},
|
||||
"weekOf": "Week of {{date}}",
|
||||
"avg7": "7-day average",
|
||||
"avg7Tip": "The average revenue of this day and the six before it (of the days with sales)."
|
||||
},
|
||||
"tables": {
|
||||
"title": "Tables",
|
||||
"tip": "Finished orders only: the time at the table is from opening to closing.",
|
||||
"avgTime": "Average time",
|
||||
"avgTimeTip": "From the order's opening to its closing.",
|
||||
"minutes_one": "{{count}} min",
|
||||
"minutes_other": "{{count}} min",
|
||||
"perVisit": "Per visit",
|
||||
"top": "The tables that earn most"
|
||||
},
|
||||
"prod": {
|
||||
"title": "Products",
|
||||
"categories": "Categories",
|
||||
"category": "Category",
|
||||
"allCategories": "All categories",
|
||||
"product": "Product",
|
||||
"units": "Units",
|
||||
"kinds_one": "{{count}} product",
|
||||
"kinds_other": "{{count}} products",
|
||||
"margin": "Margin",
|
||||
"waste": "Waste",
|
||||
"wasteTip": "Thrown away in the period (Inventory → Throwaways), with its cost.",
|
||||
"share": "Share of revenue",
|
||||
"profitShare": "Share of profit",
|
||||
"top": "Top 10",
|
||||
"by": {
|
||||
"revenue": "Revenue",
|
||||
"qty_sold": "Units",
|
||||
"trackable_profit": "Profit"
|
||||
},
|
||||
"all_one": "{{count}} product",
|
||||
"all_other": "{{count}} products",
|
||||
"shareTitle": "Revenue by category"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user