Functional description
Difficulty level:
Invoice variables
It is possible to use variables for invoices in templates for the context "Invoice". These variables for invoices are available for the template types "E-mail" and "PDF".
Variable | Description | Example |
---|---|---|
{INVOICE_ID} | Invoice ID | 12 |
{INVOICE_NUMBER} | Invoice number | IRES2013-01 |
{INVOICE_PRICE} | Invoice price | 490,00 |
{INVOICE_CURRENCY} | Invoice currency | EUR |
{INVOICE_DATE} | Invoice date | tuesday 7 jun 2013 |
{INVOICE_FINAL_DATE} | The date the invoice is made final | thursday 9 jun 2013 |
{INV_CUSTOMxx} | The custom fields | |
{CUST_PAYMENTMETHOD} | Customer payment method | |
{CUST_PAYMENTMETHOD_DESC} | Description customer payment method | |
{INVOICE_STATUS_CODE} | Invoice status code | 10 or 20 |
{INVOICE_STATUS_DESC} | Invoice status description | Draft of Final |
{INV_PAYMENTMETHOD} | Invoice payment method - code | |
{INV_PAYMENTMETHOD_DESC} | Invoice payment method - description |
When a preview of an invoice is rendered in the template editor for the variable {INVOICE_NUMBER} and the invoice is final the actual invoice number will be used (for example: F2017-0099). However if the invoice has the concept status the "First available invoice number" will be used. For example: if the last actual invoice number is F2017-0255, then the first available number is F2017-0256.