Function: settlingWeeks()
settlingWeeks(
period):SettlingWeek[]
Defined in: src/lib/pay/index.ts:246
The whole ISO Mon–Sun weeks that SETTLE in period — those whose Sunday (week end) lies inside it —
in chronological order. A period's first settling week can start in the prior month; that week is
still paid here (it holds its Sunday in this period). The weeks tile a contiguous date span (see
settlingWeekRange), so consecutive periods' spans never overlap or leave a gap. The week starts on
Monday, so toISO(week.start) matches an approved-overage key after the loaders translate the
stored Sunday billing week to its pay-week Monday (overageApprovalWeekToPayWeek).
Parameters
period
The bi-monthly half to settle.
Returns
The settling weeks in chronological order; empty if the period contains no Sunday.