{{ 'Självfaktura' | trans | upper }} {{ invoice.invoiceNr }}

{{ 'Datum' | trans }} {{ invoice.dateInvoice | date('Y m d') }}
{{ 'Förfallodatum ' | trans }} {{ invoice.invoiceDueDate is not empty ? invoice.invoiceDueDate | date('Y m d') : '' }}

{% if logo is not empty %} {% endif %}
{% if invoice.sellerEmail is not empty %} {% endif %} {% if invoice.sellerMobile is not empty %} {% endif %} {% if invoice.sellerCity is not empty %} {% endif %} {% if invoice.sellerCountry is not empty %} {% endif %}
{{ 'Säljare' | trans }}
{{ invoice.sellerName }}
{{ invoice.sellerEmail }}
{{ invoice.sellerMobile }}
{{ invoice.sellerAddress }}, {{ invoice.sellerPostCode }}
{{ invoice.sellerCity }}
{{ invoice.sellerCountry }}
{% if invoice.buyerEmail is not empty %} {% endif %} {% if invoice.buyerMobile is not empty %} {% endif %} {% if invoice.buyerCity is not empty %} {% endif %} {% if invoice.buyerCountry is not empty %} {% endif %}
{{ 'Köpare' | trans }}
{{ invoice.buyerName }}
{{ invoice.buyerEmail }}
{{ invoice.buyerMobile }}
{{ invoice.buyerAddress }}, {{ invoice.buyerPostCode }}
{{ invoice.buyerCity }}
{{ invoice.buyerCountry }}

{{ 'Vår ref' | trans }}
{{ invoice.varReference is not empty ? invoice.varReference : '-' }}
{{ 'Er ref' | trans }}
{{ invoice.erReference is not empty ? invoice.erReference : '-' }}
{{ 'Period' | trans }}
{{ invoice.kickbackDateFrom | date('Y m d') }} - {{ invoice.kickbackDateTo | date('Y m d') }}

{% for item in items %} {% endfor %}
{{ 'Order ID' | trans }} {{ 'Order datum' | trans }} {{ 'Produktnamn' | trans }} {{ 'Varumärke' | trans }} {{ 'Antal' | trans }} {{ 'Pris' | trans }} {{ 'Kickback' | trans }}
{{ item.orderId }} {{ item.dateOrder is not empty ? item.dateOrder | date('Y m d') : '-' }} {{ item.productName }} {{ item.brandName }} {{ item.quantity }} {{ item.price }} {{ item.priceKickback }}
{{ 'Kickback summa' | trans }} {{ invoice.totalPriceKickback | number_format(2, '.', ' ') }} {{ 'kr' | trans }}
{{ 'Kickback skatt' | trans }} ({{ invoice.taxRate * 100 }}%) {{ invoice.totalPriceKickbackTax | number_format(2, '.', ' ') }} {{ 'kr' | trans }}
{{ 'Kickback totalsumma' | trans }} ({{ invoice.taxRate * 100 }}%) {{ invoice.totalPriceKickbackInclTax | number_format(2, '.', ' ') }} {{ 'kr' | trans }}