• Mahmoud Aglan's avatar
    feat(hr): 2025 Labour Law compliance + employee import + payroll alignment · 23dd0208
    Mahmoud Aglan authored
    Phase 1 - Leave System (2025 Law):
    - Annual leave: 15d (1st year) → 21d (after 1y) → 30d (10y+/age 50+) → 45d (disability)
    - Maternity: 90 → 120 days (4 months), hajj: now PAID with 5y service min
    - New leave types: childcare (unpaid, 3 career, 24mo gap), paternity (1d, 3 career), exam
    - Casual leave: enforce max 2 consecutive days
    - Childcare gap enforcement, service months validation
    
    Phase 2 - Employee Import:
    - Extract 75 employees from HR registry Excel → JSON seed data
    - 34 Bank of Alexandria accounts extracted for salary transfers
    - 14 departments + all job titles auto-created from registry
    - Migration adds variable_salary + total_allowances columns
    
    Phase 4 - Payroll Alignment (July 2026 format):
    - Solidarity fund: 0.25% of gross (صندوق التكافل)
    - Stamp duty: 3% of net (دمغة عادية وإضافية) - now percentage-based
    - Emergency fund + VAT config keys added
    - calculation_json includes full breakdown
    
    Phase 5 - Bank Transfer Export:
    - BankTransferService generates transfer data from payroll runs
    - CSV export with BOM for Arabic compatibility
    - View + route: /hr/payroll/periods/{id}/bank-transfer
    
    Phase 6 - Performance Evaluation:
    - Seed 10-criteria template matching club's official form (100 points)
    - Dual evaluator support (direct manager + general supervisor)
    - 5-tier rating labels (ضعيف → ممتاز)
    
    Phase 7 - Reports & Forms:
    - Work receipt printable form (إقرار استلام العمل)
    - Workforce statement report (بيان القوة الفعلية)
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    23dd0208
Name
Last commit
Last update
..
attendance Loading commit data...
biometric Loading commit data...
contracts Loading commit data...
departments Loading commit data...
disciplinary Loading commit data...
documents Loading commit data...
employees Loading commit data...
end_of_service Loading commit data...
forms Loading commit data...
holidays Loading commit data...
insurance Loading commit data...
job_titles Loading commit data...
leave_types Loading commit data...
leaves Loading commit data...
loans Loading commit data...
overtime Loading commit data...
payroll Loading commit data...
performance Loading commit data...
permissions Loading commit data...
reports Loading commit data...
salary_structures Loading commit data...
schedules Loading commit data...
shifts Loading commit data...
tax Loading commit data...