Adisyonlar (/checks)
Calendar-day view of orders and action KPIs (payments, ikram / iptal / zayi, etc.). Internal tab id: checks.
Who can open it
Barkasa and patron. Garson cannot.
Purpose
- Browse orders for a selected calendar day (prev/next)
- Show summary KPI cards for that day
- Jump into operational analytics entry points (end-of-day related UI pieces)
- Barkasa may see a reduced analytics surface (
hideAnalyticsstyle behavior)
Key files
| Area | Paths |
|---|---|
| UI | src/components/pos/ChecksReport.tsx, KpiCard.tsx |
| Related | EndOfDayDialog.tsx (analytics entry shared with reporting flows) |
| Queries | useDayReportSummaryQuery, useCalendarDayOrdersQuery |
| Reporting lib | src/lib/reporting/* |
Data & APIs
| Call | Role |
|---|---|
| Calendar day orders / summary | Via /api/reports/calendar/ (and related report hooks) |
| Polling | Active while the tab’s queries run (~10s) |
This is calendar day, not necessarily the restaurant’s configured business-day window — business-day close/open lives primarily under Raporlar.
State
- React Query for summary + day orders
- Local day cursor (prev/next)
UX details
- Day navigation controls
- Tabs/sections for orders vs actions depending on build of
ChecksReport - Role-sensitive hiding of heavier analytics for barkasa
Development notes
- Keep timezone/day-bound helpers in
src/lib/reporting(GMT+3 assumptions appear elsewhere in logs — stay consistent) - Do not conflate calendar filters with
/day-closures/business-day state without an explicit product decision - Reuse KPI card components rather than duplicating number formatting