> ## Documentation Index
> Fetch the complete documentation index at: https://whalescorp.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Назначение billing period

`billing_period` хранит первый день календарного месяца, например `2026-03-01`. Поле добавлено в миграции `035`. Записи, созданные до `035`, имеют значение `NULL` и обрабатываются через fallback при генерации invoice:

```text theme={null}
WHERE (billing_period = $periodDate
   OR (billing_period IS NULL AND DATE_TRUNC('month', created_at) = $periodDate))
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.