Variabelen


Twig

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

Variabelen

Globale variabelen

  • tax_total
  • tax_9_total
  • tax_21_total
  • total_ex
  • total_inc

{info}

  • Alle prijzen zijn inclusief kortingen (Prijs zonder korting: prijs / (1 - discount / 100))

  • Controleer bij tax_9_total en tax_21_total of die bestaan, bijvoorbeeld:

    {% if tax_21_total %}
    <p>21% BTW: {{tax_21_total | format_currency('EUR', locale='nl')}}</p> 
    {% endif %}

invoice:

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

{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