[config thousandsSeparator=.] [config decimalSeparator=,] [config dateFormat=d-m-Y]
[if {{document.subTotalPrice}} > 0] {{template.name}} [else] Credit nota [/if]

[if {{logo}}] [/if]
Aan:

{{document.customerTo}}
{{document.formattedAddress|nl2br}} [if {{customer.vatNo}}]
BTW nr.: {{customer.vatNo}} [/if]


[if {{document.reference}}] [/if]
Nummer: {{document.number}}
Datum: {{document.date|date:d-m-Y}}
Referentie: {{document.reference}}
Gefactureerd door: [assign businessOrg = business.contactId | entity:Contact]

{{businessOrg.name}}
[assign bAddress = businessOrg.addresses | filter:type:"postal" | first] [if !{{bAddress}}] [assign bAddress = businessOrg.addresses | first] [/if] {{bAddress.formatted|nl2br}}

[assign orgEmail = businessOrg.emailAddresses | sort:type:"work" | first | prop:email] [if {{orgEmail}}] [/if] [assign orgNumber = businessOrg.phoneNumbers | sort:type:"work" | first | prop:number] [if {{orgNumber}}] [/if]
e-mail: {{orgEmail}}
tel: {{orgNumber}}

Bank: {{businessOrg.nameBank}}
IBAN: {{businessOrg.IBAN}}
BIC: {{businessOrg.BIC}}

BTW nr.: {{businessOrg.vatNo}}
KVK: {{businessOrg.registrationNumber}}



[if {{document.showPricePerLine}}] [else] [/if] [each itemGroup in document.itemGroups] [if {{itemGroup.showAs}} != "hidden"] [if {{itemGroup.showAs}} == "single"] [if {{document.showPricePerLine}}] [else] [/if] [else] [if {{itemGroup.title}}] [/if] [each item in itemGroup.items] [if {{item.description}} == "__PAGEBREAK__"]
[else] [if {{document.showPricePerLine}}] [assign rowTotal = {{item.unitPrice}} * {{item.quantity}} ] [else] [/if] [/if] [/each] [if {{itemGroup.showAs}} == "groupwithtotal"] [/if] [/if] [/if] [/each] [if {{document.showTotals}}] [if {{document.vatTotals|count}} > 0] [if {{document.showPricePerLine}}] [/if] [/if] [if {{document.vatReverseCharge}}] [else] [each vatTotal in document.vatTotals] [/each] [/if] [/if]
Aantal BeschrijvingBeschrijving[if {{document.showPricePerLine}}]Prijs[/if]
1 {{itemGroup.title}} {{book.currency}} {{itemGroup.subTotalPrice|number}}{{itemGroup.title}}
{{itemGroup.title}}
{{item.quantity|number}} {{item.description|nl2br}}{{book.currency}} {{rowTotal|number}}{{item.description|nl2br}}
[if {{document.showPricePerLine}}]Totaal[else]Prijs[/if]: {{book.currency}} {{itemGroup.subTotalPrice|number}}
Subtotaal: {{book.currency}} {{document.subTotalPrice|number}}
BTW verlegd (0%): {{book.currency}} 0,00
BTW {{vatTotal.rate|number}}%: {{book.currency}} {{vatTotal.price|number}}
Totaal: {{book.currency}} {{document.totalPrice|number}}

Voorwaarden
[assign outstanding = {{document.totalPrice}} - {{document.paidAmount}}] [if {{document.subTotalPrice}} < 0] [if {{outstanding}} < 0 ] Wij betalen u het bedrag van {{book.currency}} {{outstanding|number}} binnen 14 dagen uit. [else] Alles is betaald. [/if] [else] [if {{outstanding}} > 0 ] Gelieve het openstaande bedrag van {{book.currency}} {{outstanding|number}} binnen 14 dagen te betalen onder vermelding van het factuurnummer. [else] Bedankt voor uw betaling! [/if] [/if]