• Mahmoud Aglan's avatar
    feat(accounting): connection centre — every money path, what it needs, and split-anything · ac28a438
    Mahmoud Aglan authored
    Answers the question the finance review will actually ask: "we know it is not
    connected — how do we connect it, from inside the system, now?"
    
    Three parts.
    
    1. مركز التوصيل (/accounting/revenue-mapping/connections)
       Every money path in the ERP in one list, split by WHAT IT NEEDS rather than by
       severity, because that decides who can close it:
    
         - تُوصَّل الآن من الشاشة — the module already fires an event carrying the
           amount, so mapping the accounts is the whole fix. Has a button.
         - تحتاج تعديل برمجي — the module writes the money to its own table and fires
           nothing. Mapping would change nothing, so there is deliberately NO button
           and the row says exactly what is missing. A button here would be a lie.
         - موصولة — with the current split shown inline and a rewire button.
    
       Each row reads the amount sitting in that module's own table live, so every gap
       is a number instead of an adjective.
    
    2. Rewire and split anything, including already-connected paths
       The connected list shows each current split and offers "قسّم على حسابات" when a
       path still posts to a single account. Any line can be a percentage, a flat
       amount, or the remainder — so "30% of the 150,000 to this fund, 10% to that one,
       the rest to membership revenue" is three lines and a save. Saving takes a new
       version with an effective date; posted entries never move.
    
    3. Create the destination account without leaving the screen
       A fund that does not exist yet used to mean leaving for the chart of accounts
       and losing the room. "+ حساب جديد" creates the leaf under a chosen header,
       takes the next free code, inherits type and nature, and drops straight into the
       line. Refuses to hang a child off a posting account, which would strand its
       balance.
    
    Also seeds the club fund accounts a distribution rule needs to point at — sports
    support, member welfare, martyrs stamp (already priced at 5 EGP in the service
    catalogue with nowhere to post it), federation share, facilities development.
    They are liabilities, not revenue: money earmarked for a fund is held on that
    fund's behalf, and posting it to revenue would overstate income.
    
    And 27 previously invisible paths are now catalogued with an honest wiring_status,
    a plain-Arabic note on what is missing, and a pointer to the table holding the
    money — so the screen shows the whole picture instead of only the working parts.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    ac28a438
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...