• Mahmoud Aglan's avatar
    fix(accounting): align account codes with live chart of accounts and fix 4 journal-entry bugs · e6708441
    Mahmoud Aglan authored
    - AccountingIntegrationService: read payment_type key (dispatched) not type key (wrong fallback)
      that was silently routing every payment journal to the default catch-all account
    - InstallmentController: fire installment.plan_created (correct) not installment_plan.created
      so AR journal entry is created when a plan is made from the installments UI
    - AccountCodes: remap all constants to accounts that actually exist in chart_of_accounts DB
      - form_fee → 410103 (استمارات عضويات), membership_fee → 410101 (عضويات جديدة)
      - addition_fee → 410102 (إضافة عضويات)
      - installment → 410510 (الاقساط), down_payment → 410503 (مقدم عضويه)
      - waiver_fee/death_fee → 410515 (إيرادات متنوعه)
      - sports_registration/sa_form_fee → 410516 (استمارات نشاط)
      - fine → 410512 (غرامة تاخير), SERVICE_REVENUE → 410515 (exists, was 4110 which did not exist)
    - DB: corrected treasury 3 account_code from 12060103 (EUR label) to 12060101 (EGP)
      which was causing form_fee journals to debit the wrong sub-treasury cash account
    Co-Authored-By: 's avatarClaude Sonnet 4.6 <noreply@anthropic.com>
    e6708441
Name
Last commit
Last update
.claude Loading commit data...
Another ERP that we may want to cheat from Loading commit data...
Server Connection Data Loading commit data...
app Loading commit data...
config Loading commit data...
cron Loading commit data...
database Loading commit data...
docker Loading commit data...
docs Loading commit data...
public Loading commit data...
support_tickets_downloads/support_screenshots Loading commit data...
tests Loading commit data...
tools Loading commit data...
.dockerignore Loading commit data...
.editorconfig Loading commit data...
.env Loading commit data...
.env.example Loading commit data...
.gitignore Loading commit data...
.php-cs-fixer.php Loading commit data...
BalanceSheet.html Loading commit data...
CLAUDE.md Loading commit data...
Dockerfile Loading commit data...
Makefile Loading commit data...
SYSTEM_MAP.md Loading commit data...
UPGRADE_PLAN.md Loading commit data...
captain-definition Loading commit data...
cli.php Loading commit data...
composer.json Loading commit data...
composer.lock Loading commit data...
interesting_features.md Loading commit data...
phpstan.neon Loading commit data...
phpunit.xml Loading commit data...
sports activity stuff .txt Loading commit data...
sports-activity-alignment-plan.md Loading commit data...
sports-activity-smart-filtering-plan.md Loading commit data...
trial_balance_2026-01-01_to_2026-05-10.csv Loading commit data...