BillingRunInput
RequestBill one period of a plan.
Sent in requests. Its values are closed: anything not listed is refused.
Attributes
9Leave draft invoices, issue them, or issue and email them. Issuing also needs permission to write sales invoices (invoices:write).
One of draft, issue, issue_send
Values for the plan's asked variables, and overrides of timed ones.
6 attributes of each item
The value, as a decimal string with at most 6 decimal places (a 7th is refused); it is stored and read back as sent, never rounded to fewer. Null with purchase_invoice_id: the variable's invoice formula over the chosen lines (invoice_formula on the plan variable; the lines' sum when it has none), computed by the server and kept to 6 places, half-even.
Details
A value sent with purchase_invoice_id must equal that result exactly.
Whether the purchase invoice lines are read with their VAT (included, the default) or without it: the line.amount of the invoice formula.
One of included, excluded
For a plan in a currency the European Central Bank publishes no rate for: the rate every draft of the run is booked at, in ExchangeRate's direction, recorded as a manual rate and kept when the draft is issued.
Details
Used only when no ECB rate exists for the day the drafts convert on (the run's posting date); where one does, or for a plan in the book currency, the run is refused (EXCHANGE_RATE_OVERRIDE_INVALID). Omitted: the ECB's rate of that day.