fix(installments): pass pendingCount to show view; feat(transfers): فصل أبناء employment workflow
- Installments: controller now computes pendingCount before passing to show view,
fixing Undefined variable crash at show.php:4
- Transfers: add فصل أبناء employment-status workflow
- Migration Phase_94_002 adds is_employed, graduation_date, work_date,
date_turned_25, effective_transfer_date columns to transfer_requests
- SeparationFeeCalculator: new calculateYearsFloor() (floor, never rounds up),
computeChildSeparationDates() (effective = min(work_date, date_25) or date_25),
calculateForChildSeparation() (uses floor years + current subscription price)
- TransferController store(): reads employment fields, computes effective date,
routes to new calculator for child_separation; saves all new fields
- calculateFee API: supports transfer_type=child_separation with employment fields
- create.php: new فصل أبناء section with employment radio, graduation date,
work date (conditional), auto-computed date_turned_25, effective date display,
live elapsed-years preview via AJAX
Co-Authored-By:
Claude Sonnet 4.6 <noreply@anthropic.com>
Showing
Please register or sign in to comment