home

Browse documentation

ezyVet Knowledge Center

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

Twig template variables: Invoice line item

NameFunction
{{ invoiceline.ProductName }}Shows the name of the product.
Note: This variable shows the product name that is in the Description column of the invoice line item.
{{ invoiceline.Product.Name }}Shows the name of the product.
Note: This variable shows the product name that is in the configuration of the product.
{{ invoiceline.Quantity }}Shows the quantity of the product.
{{ invoiceline.Date }}Shows the date of the invoice line item.
{{ invoiceline.SalesPerson }}Shows the contact record of the sales person of the invoice line item.
{{ invoiceline.TotalBeforeDiscount }}Shows the total dollar quantity of the invoice line item without the discount. The value does not include tax.
Note: To show a value that is easy to read, use this variable with the moneyformat Twig filter.
{{ invoiceline.TotalBeforeDiscount(true) }}Shows the total dollar quantity of the invoice line item without the discount. The value includes tax.
Note: To show a value that is easy to read, use this variable with the moneyformat Twig filter.
{{ invoiceline.TotalDiscount }}Shows the total discount quantity of the invoice line item. This variable uses a dollar quantity to show the value.
Note: To show a value that is easy to read, use this variable with the moneyformat Twig filter.
{{ invoiceline.TotalDiscountPercent }}Shows the total discount quantity of the invoice line item. This variable uses a percentage to show the value.
Tip: To show the percentage rounded to two decimal places, enter {{ invoiceline.TotalDiscountPercent }}|round(2)
{{ invoiceline.Total(true) }}Shows the total dollar value of the invoice line item. The value includes tax.
Note: To show a value that is easy to read, use this variable with the moneyformat Twig filter.
{{ invoiceline.Total }}Shows the total dollar value of the invoice line item. The value does not include tax.
Note: To show a value that is easy to read, use this variable with the moneyformat Twig filter.
{{ invoiceline.PriceAfterDiscount(true) }}Shows the total price of the invoice line item with the discount.
Note: To show a value that is easy to read, use this variable with the moneyformat Twig filter.
{{ invoiceline.Product.PrintableName }}Shows the content of the Printable Name box of the product's configuration.
Note: The content of the Printable Name box is the alternative product name.
{{ line.NonBundleTotalDiscount }}Shows the discount quantity of a line item of a fixed-price product bundle.
Note: The {{ line.NonBundleTotalDiscount }} variable only shows the discount quantity that a staff member sets or that a price adjustment rule sets.
{{ line.NonBundleTotalDiscountPercent }}Shows the discount percentage of a line item of a fixed-price product bundle.
Note: The {{ line.NonBundleTotalDiscountPercent }} variable only shows the discount quantity that a staff member sets or that a price adjustment rule sets.