• Claude's avatar
    Scope financial overview expenses and P&L to the active branch · 944c5001
    Claude authored
    The financial overview filtered revenue by branch but not expenses, so
    every branch showed the same expense figure. The "مدفوعات أخرى" line was
    academy-wide outbound payments — 32,510 EGP of customer refunds issued
    this month, all belonging to Zayed — displayed identically under all 7
    branches. Purchase orders had the same problem, and in the 6-month P&L
    chart both income and outbound were unfiltered.
    
    Also: PaymentService::refund() created the outbound payment without
    copying branch_id from the payment being refunded, so refunds taken
    through that path landed in no branch at all and were invisible in every
    branch view. RefundService already did this correctly.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    944c5001
Name
Last commit
Last update
..
Console/Commands Loading commit data...
Domain Loading commit data...
Helpers Loading commit data...
Http Loading commit data...
Livewire Loading commit data...
Models Loading commit data...
Providers Loading commit data...