• Mahmoud Aglan's avatar
    feat(subscriptions): auto-sync FY subscription row when dependent is activated · 58084696
    Mahmoud Aglan authored
    SubscriptionSyncService::syncForDependent() inserts a pending subscription
    row for the current financial year whenever a spouse, child, or temporary
    member becomes active. Triggered via two paths in Subscriptions bootstrap:
    
    - Cashier path: spouse.fee_paid / child.fee_paid / temporary.fee_paid
    - Zero-fee path: *.added events where fee = 0 (immediate activation)
    
    Guards: member must be active + non-exempt type; dedup prevents duplicates.
    Rates resolved identically to SubscriptionGenerator (year-specific catalog
    code → generic code → hard fallback). Never throws — safe in event context.
    Co-Authored-By: 's avatarClaude Sonnet 4.6 <noreply@anthropic.com>
    58084696
Name
Last commit
Last update
..
Core Loading commit data...
Middleware Loading commit data...
Modules Loading commit data...
Shared Loading commit data...