• Mahmoud Aglan's avatar
    feat(accounting): allocation wizard with a live running remainder · 00dfe062
    Mahmoud Aglan authored
    Splitting a payment across GL accounts previously meant the advanced rule
    editor — a table of lines with no feedback until save. The finance team's
    actual question is "20% here, 30% there, where does the rest go?", which
    needs the remainder visible while you allocate.
    
    - New wizard screen: base amount (pre-filled from the stream's actual
      collection average), member-category scope, progressive allocation with
      the unallocated balance as a running figure plus a proportional bar,
      a mandatory remainder destination, and a live journal-entry preview
      that balances before you can save.
    - The wizard's arithmetic mirrors RevenueAllocator exactly — tax off the
      top, fixed lines from the pool, percentages of net-after-fixed — so the
      preview is what actually posts. Verified against the live allocator:
      150,000 → 20%/30%/rest = 30,000 / 45,000 / 75,000, and with 14%
      inclusive VAT = 26,315.79 / 39,473.69 / 65,789.47 on net 131,578.95.
    - Wire member_category through resolveRule() with specificity scoring
      (category > branch > payment method), so a working-member split wins
      over the general rule with no extra configuration.
    - update() resolves and supersedes only the same-scope rule, and no
      longer reads $memberCategory before assigning it.
    - Wizard is now the default action from the mapping list and the
      connection centre; the advanced editor moves behind a  link.
    - Arabic tutorial in docs/معالج-توزيع-المبالغ.md.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    00dfe062
Name
Last commit
Last update
..
Academies Loading commit data...
AcademyContracts Loading commit data...
AccessMatrix Loading commit data...
Accounting Loading commit data...
Achievements Loading commit data...
ActivitySubscriptions Loading commit data...
Alerts Loading commit data...
Archive Loading commit data...
Audit Loading commit data...
Auth Loading commit data...
Branches Loading commit data...
Carnets Loading commit data...
Cashier Loading commit data...
Children Loading commit data...
Coaches Loading commit data...
Dashboard Loading commit data...
Death Loading commit data...
Disciplines Loading commit data...
Divorce Loading commit data...
Documents Loading commit data...
Facilities Loading commit data...
FacilityDashboards Loading commit data...
FacilityGrids Loading commit data...
Fines Loading commit data...
Foreign Loading commit data...
Forms Loading commit data...
HR Loading commit data...
Honorary Loading commit data...
Installments Loading commit data...
Interviews Loading commit data...
Inventory Loading commit data...
MatchCenter Loading commit data...
MedicalBoard Loading commit data...
Members Loading commit data...
News Loading commit data...
Notifications Loading commit data...
ParentPortal Loading commit data...
Payments Loading commit data...
PlayerAffairs Loading commit data...
PlayerApi Loading commit data...
PlayerAuth Loading commit data...
PlaygroundAdmin Loading commit data...
PoolManagement Loading commit data...
Pricing Loading commit data...
Procurement Loading commit data...
Receipts Loading commit data...
Rentals Loading commit data...
Reports Loading commit data...
Reservations Loading commit data...
Roles Loading commit data...
Rules Loading commit data...
Sales Loading commit data...
Scheduling Loading commit data...
Seasonal Loading commit data...
ServiceCatalog Loading commit data...
Sessions Loading commit data...
Settings Loading commit data...
Sports Loading commit data...
SportsActivity Loading commit data...
SportsDashboard Loading commit data...
Spouses Loading commit data...
Subscriptions Loading commit data...
Support Loading commit data...
Temporary Loading commit data...
Tournaments Loading commit data...
TrainerPortal Loading commit data...
Training Loading commit data...
TrainingGroups Loading commit data...
Transfers Loading commit data...
Treasury Loading commit data...
Tutorials Loading commit data...
Users Loading commit data...
Waiver Loading commit data...
Workflow Loading commit data...