Fix 3 broken reports: daily revenue group-by, cash sessions columns, revenue by activity
1. Daily revenue: group by date only (removed method split per manager request)
2. Cash sessions: fix column names (cash_in→total_cash_in, cash_out→total_cash_out) and null-safe arithmetic to prevent string/int type error
3. Revenue by activity: fix column name (line_total→total_amount) and replace broken whereHasMorph with proper join for branch filter
4. Money formatting: cast to int before division to prevent type error on empty values
Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com>
Showing
Please register or sign in to comment