Available templating variables:
{{ collection_method_display }}
a 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.
{{ payment_terms }}
Difference (in days) between {{ due_date }}
and {{ invoice_date }}
.
{{ 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.
{{ invoice_payment_instruction_number }}
The Invoice payment instruction number: 15-digit FI code (DK) or KID number (NO) — depending on your Payment Channel configuration.
{{ account_name }}
The name of the account the invoice is issued for.
{{ account_code }}
The unique code of the 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 }}
Available formatters:
You can format the data by using:
{{ variable_name|filter_name:filter parameters }}
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 zeros
j 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 zeros
n is month without leading zeros
M 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 year
Y is 4-digit year
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.