{{=logo}}
{{=studio['name'].upper()}}
{{ if studio['address']: }} {{=studio['address']}}
{{ pass }} {{ if studio['phone']: }} {{=studio['phone']}}
{{ pass }} {{ if studio['email']: }} {{=studio['email']}}
{{ pass }} {{ if studio['registration']: }} {{=studio['registration']}} {{ pass }}
INVOICE

INVOICE # {{=invoice.InvoiceID}}
ISSUED {{=invoice.DateCreated}}
DUE DATE {{=invoice.DateDue}}
BILL TO
{{ if customer['company']: }} {{ =customer['company'] }}
{{ pass }} {{=SPAN(customer.first_name, ' ', customer.last_name)}}
{{ if customer['address']: }} {{ =customer['address'] }}
{{ pass }} {{ if customer['postcode']: }} {{=customer['postcode']}} {{ pass }} {{ if customer['city']: }} {{=customer['city']}} {{ pass }} {{ if customer['city'] or customer['postcode']: }}
{{ pass }} {{ if customer['country']: }} {{=customer['country']}}
{{ pass }}
{{ if invoice['Description']: }}
Description
{{=invoice['Description']}}
{{pass}} {{ for item in items: }} {{pass}} {{ for tax_rate in amounts_vat: }} {{ pass }}
PRODUCT NAME DESCRIPTION QTY PRICE INCL VAT SUBTOTAL TAX RATE
{{=item.ProductName}} {{=item.Description}} {{=item.Quantity}} {{=item.Price}} {{=item.TotalPrice}} {{=item.tax_rates_id}}
Subtotal {{ =amounts['TotalPrice'] }}
{{ =tax_rate['Name'] }} {{ =tax_rate['Amount'] }}
Total {{ =amounts['TotalPriceVAT'] }}
{{ if invoice['Terms']: }}
TERMS AND CONDITIONS {{ =XML(invoice['Terms']) }}
{{pass}} {{ if invoice['Footer']: }} {{pass}}