Keep your users updated as your project evolves
Statutory exchange-rate anchors, and ČNB rates for Czech workspaces
Automatically fetched exchange_rate values on foreign-currency documents
and expenses now follow the statutory anchor: the case day is the delivery
date (falling back to the issue date), valued for Slovak workspaces at the
ECB reference rate declared the preceding day, and for Czech workspaces at
the ČNB rate for the case day itself. Czech workspaces can also elect the
D−1 ČNB rate or a fixed rate list (pevný kurz) per workspace, and the
settings screen generates the matching internal directive text.
- Consumers reading
exchange_rateon newly created records see day-correct statutory values; user-entered rates are never overwritten. - A one-time correction re-anchored the stored
exchange_rateon five historical expenses whose value provably came from the old fetch — each carries a full before/after audit trail in its metadata. No settled, manually entered, or document rates were touched, and payment statuses were provably unaffected.
Breaking: document status is now lifecycle-only; payment state moves to payment_status
The single status enum on invoices, proformas, credit notes, and quotes
no longer mixes lifecycle and payment. status now carries only the
document’s lifecycle, with a per-type value set:
- invoices, credit notes:
draft,issued,sent,canceled - proformas: adds
settledandexpired - quotes:
draft,issued,sent,accepted,rejected,expired,canceled
The removed values — exposed, in_due, active, paid, unpaid,
partially_paid, paid_above_price, paid_after_due_date — are replaced
by new read-only fields:
payment_status (unpaid, partially_paid, paid, overpaid; null
for non-payable documents) is derived from actual payments, using the same
rounding tolerance as the rest of the app. overdue is derived from
due_date and the outstanding balance — there is no stored overdue status
to poll or update. Update any code that reads or filters on the old
combined values.
Breaking: status is no longer writable — use action endpoints
Create and update bodies no longer accept a status field. Documents are
moved through their lifecycle with the action endpoints — POST …/invoices/{id}/issue, POST …/credit_notes/{id}/issue, POST …/quotes/{id}/accept — and payment is recorded, not declared: POST …/invoices/{id}/mark_paid creates a real payment record for the
outstanding balance, and payment_status derives from it.
Two behavior changes ride along:
- Drafts are unnumbered —
numberisnulluntil the document is issued, when it is minted from the workspace’s number series. Draft numbers no longer consume a slot in the series. - A document locks after its first accounting effect (a payment, or
transmission), visible as
status_transitions.locked_at. Content edits on a locked document are rejected; correct it with a credit note.
