• Mahmoud Aglan's avatar
    Enforce validation rules: gender, spouse classification, and post-activation lock · 509f2b81
    Mahmoud Aglan authored
    - Gender: strictly enforce male/female only in member, spouse, child, temporary
      creation (validated from NID or manual input)
    - Spouse classification: under 21 = عضو تابع (dependent), 21+ = عضو عامل (working)
    - Post-activation lock: after membership payment (membership_number assigned),
      all member/dependent data becomes non-editable except by super admin
      - Locks: create, edit, update, archive on spouses, children, temporaries
      - Locks: edit, fill-form, update on member itself
      - UI: hides add/edit buttons when locked, shows lock indicator
    - Marriage rules already enforced: male→4 females max, female→1 male max
      (via Spouse::getMaxSpouses and gender cross-check from NID)
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    509f2b81
Name
Last commit
Last update
..
Spouse.php Loading commit data...