• Mahmoud Aglan's avatar
    Fix proration settings never saving or taking effect · b9239f68
    Mahmoud Aglan authored
    Two bugs:
    1. save() wrote bare key "allow_proration" but ProrationService reads
       dotted "enrollment.allow_proration" — now always writes "{group}.{key}"
    2. loadAllSettings() tried to read bare keys but DB had dotted keys from
       seeder — now strips group prefix on read so UI always sees bare keys
    
    Result: toggle saves correctly, ProrationService reads the live value,
    mid-month enrollment now shows prorated fee (e.g. day 16 = 15/30 × fee).
    Co-Authored-By: 's avatarClaude Sonnet 4.6 <noreply@anthropic.com>
    b9239f68
SystemSettings.php 16.7 KB