Invoice Footer Templating
Invoice footers provide a way to use and display data related to current invoice, account and organization.
Displaying data
You can display data by placing #{{ variable_name }} in either of the footers in Organization settings. For example:
Invoice payable to bank account DK12341234.
Please use #{{ invoice_number }} as transfer title.
Available variables:
collection_method_display
pretty display of invoice's collection method: eg. "Payment Card" or "Invoice"
collection_method
collection method used by the invoice. Can be one of "payment_card" or "invoice".
invoice_number
the number of the invoice. This can be used as a base to generate FI kode.
invoice_date
The date the invoice was issued. Please see date formatter.
due_date
The date the invoice should be paid by. Please see date formatter.
invoice_currency
The three-letter code of currency of the invoice.
invoice_total
The total value of the invoice as a number with two decimal places.
account_name
The name of the account the invoice is issued for.
account_code
The unique code of the account the invoice is issued for.
account_vat_number
The VAT number of the account the invoice is issued for.
account_legal_address
The street address of the account the invoice is issued for.
account_legal_zipcode
The zip/postal code of the account the invoice is issued for.
account_legal_city
The city of the account the invoice is issued for.
account_legal_country
The country of the account the invoice is issued for.
account_billing_same_as_legal
signifies if billing address is the same as legal address. If so, the account_billing_* variables will be null.
account_billing_address
account_billing_zipcode
account_billing_city
account_billing_country
organization_name
organization_short_name
organization_display_name
The short name, and if that isn't specified, the name of the organization.
organization_email
organization_support_email
organization_registration_number
organization_website
organization_address
organization_zipcode
organization_city
organization_country
Formatting data
You can format the data by using #{{ variable_name|filter_name:filter parameters }}. Example:
Invoice payable by wire to DK12341234 by #{{ due_date|date:"d.m.Y" }}
Please use #{{ invoice_number }} as transfer title.
Available formatters:
date
Formats a date using format specified by the parameter. The parameter can consist of following entities:
- non-alphabetic characters (, . - / # etc.) are displayed directly, they have no special meaning
d
is 2-digit day of the month with leading zerosj
is 1 or 2 digit day of the month, without leading zeros.D
is shortened textual day of the week (ie. "Mon", "Tue")l
is textual day of the week (ie. "Monday")m
is month, 2 digits with leading zerosn
is month without leading zerosM
is shortened textual month with first letter in uppercase (ie. "Jan", "Feb")b
is shortened textual month with first letter in lowercase (ie. "jan", "feb")E
is locale-specific (including declension and other grammar alterations applicable) textual month (ie. it would be "grudnia" in Polish instead of "Grudzień" which would be returned by F format).F
is textual month with first letter uppercase (ie. "January")y
is 2-digit yearY
is 4-digit year
Example
{{ due_date|date:"d.m.Y" }}
Will display 01.01.2023
fikort71
Creates a payment code according to FI kort 71 standard. There are two ways of using it:
{{ invoice_number|fikort71 }}
displays a 15-digit string containing just the invoice number and its checksum part of FI kort 71.
{{ invoice_number|fikort71:"87658765" }}
displays a full FI kort 71 payment description. The numeric parameter is the creditor account number which is displayed as a part of FI kort 71 format.