You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c8f879a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(billing): roll forward-moved periods, lock only past period end, skip ended admissions
- Roll a cumulative charge into the payer's current period whenever that
period starts after the latest row's, so an anchor reset or resync inside
the old period never tops up a closed period.
- Share-lock the payer's subscription row only once the latest row's period
has ended; before that no close can be due, and the lock would starve the
rollover update for a busy payer.
- Mid-run usage checks report unknown (continue) once the run's admitted
period has ended, instead of judging the old period against its allowance.
- Refuse request keys containing "@" when period rows are in play, so they
cannot collide with another request's period rows.
- Document the mixed-version and rollback window: code that predates period
rows can double-count a run's post-rollover spend only between a rollover
and that period's close (at least an hour); the exposure is cents to dollars.
0 commit comments