Structs§
Functions§
- client_
by_ slug - client_
create - client_
delete - client_
list - client_
update - Full-replace UPDATE. Matches by slug.
- invoice_
create - invoice_
delete - Delete an invoice by number. Refuses non-draft invoices unless
force. Deleting a non-draft invoice breaks the numbering sequence — which is a regulatory problem in many jurisdictions. Forcing should be deliberate. - invoice_
get - invoice_
item_ add - Append an item to a draft invoice. Fails if the invoice isn’t draft.
- invoice_
item_ edit - Replace the item at
positionwithitem’s fields. Draft-only. - invoice_
item_ remove - Remove the item at
positionfrom a draft invoice; re-compacts trailing positions so there are no holes. - invoice_
list - invoice_
set_ status - Update status and, on first transition into
issued/paid, stamp the corresponding timestamp column. Idempotent — re-marking doesn’t overwrite the original timestamp. - invoice_
update_ draft - Draft-only metadata edit. Rejects edits to issued / paid / void invoices — the correct path for those is a credit note.
- issuer_
by_ slug - issuer_
create - issuer_
delete - issuer_
list - issuer_
update - Full-replace UPDATE. Matches by slug (PK-like). Slug itself cannot change.
- next_
invoice_ number - Generate the next document number for an issuer/year/kind combination.
kindis typically “invoice” or “credit_note” — credit notes get an independent sequence and are formatted with a “CN-” prefix. - open
- open_at
- product_
by_ slug - product_
create - product_
delete - product_
list - product_
update - Full-replace UPDATE. Matches by slug.