BillingFormulaCatalog
ResponseWhat billing formulas may use: the grammar (EBNF), its functions and limits, and the references available, flat (references) and in the formula field's groups (variables, properties, meters, sys, and for a variable's formula over a purchase invoice invoice and lines).
Returned in responses. Its enums are open: tolerate values not listed here, which later versions may add.
Attributes
10Functions a formula may call.
4 attributes of each item
Function name. New values may be added: treat a value you do not know as valid, not as an error.
Known values (open: expect new ones) round, min, max, if, sum_objects, sum_lines
The grammar's limits, the same in the server and the editor.
Every reference available, in the order of the groups below.
5 attributes of each item
What the reference reads. New values may be added: treat a value you do not know as valid, not as an error.
Known values (open: expect new ones) var, prop, consumption, sys, invoice, line
The plan's variables (var.); empty without plan_id.
5 attributes of each item
The object type's numeric properties (prop.).
5 attributes of each item
The organization's meter types (consumption.).
5 attributes of each item
The values the billing engine computes (sys.).
6 attributes of each item
The computed values' group (D67) — over the objects, of the period, of the recipient, from outside sources. New values may be added: treat a value you do not know as valid, not as an error.
Known values (open: expect new ones) objects, period, recipient, external
A purchase invoice's totals (invoice.), for an asked variable's invoice_formula; the same for every plan.
5 attributes of each item
One chosen invoice line's figures (line.), inside sum_lines of an asked variable's invoice_formula; the same for every plan.