Type Alias: RunStatus
RunStatus =
"sent"|"gap"|"paused"|"review"|"none"|"ready"
Defined in: src/lib/invoice/run.ts:22
Per-facility status for one weekly billing run, derived in SQL by weekly_billing_run().
ready— billable, clean, and ready to invoice (in flight, not yet sent).review— billable but flagged for human review: an assignment is missing a billing rate, the facility has no billing contact, or some logged hours are still unapproved; still counted toward billable-in-flight. (varianceFlaggedis informational only and does NOT affect this status.)gap— a coverage gap exists; not billable as-is and excluded from billable totals.paused— the facility's billing is paused for this week (dated pause window); excluded from billing and from the coverage-gap count, and auto-resumes once the pause ends.sent— an invoice already exists/was sent for this facility this week.none— nothing to bill (no logged hours / no active assignments).
Note: counts toward RunKpis differ by status — see aggregateKpis.