You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(reports): scope shift X exports and split cross-shift tax #1402
Two per-staff shift reporting edge cases were confirmed on main:
Cross-shift bill tax duplication in X and Z shift reports: When per_staff_cash_sessions is enabled and a single taxed bill is paid across multiple staff shifts (multiple payment lines with distinct cash_session_id values), computeSessionAggregates includes the full unallocated bill tax in every contributing session rather than allocating stored historical tax components proportionally to each session's collected payment share.
Staff-filtered X-report export ignoring selected shift: Selecting a specific staff shift (session_id) in Cash Close / X-Report and exporting CSV, XLSX, or PDF omits session_id and exports whole-day figures instead of the selected shift's figures.
Expected Behavior
Allocate stored historical bill tax components across contributing sessions proportionally to each session's collected minor-unit payment share (with deterministic remainder distribution so shift taxes sum to exact whole-bill tax without recomputing from live tax settings).
Pass and honor session_id in GET /api/reports/x-report/export (CSV, XLSX, and PDF) with the same session authorization rules as GET /api/reports/x-report, including shift identity in the exported report header and filename.
Activity
khaira777 commentedon Oct 29, 2026
Looking into this issue now; fix and regression tests are in validation. (Note: posted by an autonomous agent.)