home

Browse documentation

ezyVet Knowledge Center

Get access to documentation, training, and other high-quality resources.

Twig template variables: Combined invoices

The combined invoice variables show the totals, the period and the invoices of a combined invoice. Use these variables in combined invoice templates. Each variable starts with superinvoice.

All invoice variables also work with the superinvoice variable.

Variables that show a list

Some of these variables show a list. For example, superinvoice.Invoices shows a list of the invoices of the combined invoice.

To use a variable of this type:

  • Put the variable in a Twig for loop.
  • Between the for tag and the endfor tag, put the text to show for each item.
  • After for, enter a name for each item in the list.
Note: Use the same name in the variables in the loop.

Example:

{% for invoice in superinvoice.Invoices %}
{{ invoice.Number }}: {{ invoice.AnimalName }}
{% endfor %}

In this example:

  • superinvoice.Invoices is the list of the invoices of the combined invoice.
  • invoice is the name for each item in the list.
  • invoice.Number shows the number of each invoice.
  • invoice.AnimalName shows the name of the patient of each invoice.
  • The document shows the text between the tags one time for each item in the list.

Variables

NameClassic template system equivalent?Function
{{ superinvoice.CombinedInvoiceSubtotal }}NoShows the subtotal of the combined invoice.
Note: This variable shows the value in currency format.
{{ superinvoice.CombinedInvoiceTotal }}NoShows the total of the combined invoice.
Note: This variable shows the value in currency format.
{{ superinvoice.CombinedInvoiceIncTax }}NoShows the total of the combined invoice, with tax.
Note: This variable shows the value in currency format.
{{ superinvoice.CombinedInvoicePaid }}NoShows the paid quantity of the combined invoice.
Note: This variable shows the value in currency format.
{{ superinvoice.CombinedInvoiceDue }}NoShows the due quantity of the combined invoice.
Note: This variable shows the value in currency format.
{{ superinvoice.CombinedInvoiceFreight }}NoShows the freight of the combined invoice.
Note: This variable shows the value in currency format.
{{ superinvoice.CombinedInvoiceStartDate }}NoShows the start date of the period of the combined invoice.
{{ superinvoice.CombinedInvoiceEndDate }}NoShows the end date of the period of the combined invoice.
{{ superinvoice.Invoices }}NoShows a list of the invoices of the combined invoice.
Note: Use this variable in a Twig for loop. Refer to Variables that show a list.
{{ superinvoice.LineItems }}NoShows a list of the line items of all invoices of the combined invoice.
Note: Use this variable in a Twig for loop. Refer to Variables that show a list.