Period Management
When a subscription is created, Fluxrate sets:current_period_start=start_datecurrent_period_end=start_date + billing_interval
current_period_end <= now, it:
- Generates a DRAFT invoice for the period
- Calculates all fixed charges + metered usage
- Advances the period:
current_period_start = old end,current_period_end = old end + interval - Updates
last_invoiced_date