Variabelen


Twig

De Facturi template engine maakt gebruik van Twig. Hoe je Twig moet gebruiken kan je hier vinden

Variabelen

Globale variabelen

  • tax_total
  • taxes[]
    • vat
    • tax
  • total_ex
  • total_inc

{info}

  • Alle prijzen zijn inclusief kortingen (Prijs zonder korting: prijs / (1 - discount / 100))
    {% for tax in taxes %}
    <p>{{ tax.vat }}% btw {{ tax.tax  | format_currency('EUR', locale='nl') }}</p> 
    {% endfor %}

invoice:

  • invoice_date
  • invoice_expiration_date
  • invoice_expiration_days
  • invoice_title (Creditfactuur of factuur)
  • status (paid, unpaid of credit)
  • invoice_number
  • reminder (bool)
  • credit_invoice (bool)
  • credit_invoice_for (e.g. 2020-0001)
  • payment_link (facturi.nl/invoice/pay/...)
  • vat_shifted (bool)
  • discount (e.g. 50)
  • small_business_arrangement (bool)

{warning} Controleer altijd of payment_link bestaat. De payment_link moet niet tevoorschijn als er geen payment_link is (eg. als de verzender geen Mollie heeft gekoppeld of als de prijs 0 is)

billing

  • name
  • account_number

sender

  • name
  • email
  • phone
  • address_1
  • address_2
  • postal_code
  • city
  • country
  • kvk
  • tax_id
  • notes
  • logo

customer

  • name
  • address_1
  • address_2
  • postal_code
  • email
  • phone
  • type (Bedrijf of Consument)
  • city
  • country
  • kvk
  • tax_id
  • notes

products []

  • name
  • product_id
  • unit
  • vat (0, 9, 21)
  • price_inc
  • price_ex
  • quantity
  • total_price_inc
  • total_price_ex
  • total_tax

{info} Let op! Products is een array. Maak hier gebruik van een for loop