Scope financial overview expenses and P&L to the active branch
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:
Claude Opus 5 <noreply@anthropic.com>
Showing
Please register or sign in to comment