{{ 'Faktura' | trans | upper }} {{ (channel is null or channel.isSwitchOrderNrOrderCountNr() == false) ? invoice.invoiceNr : invoice.invoiceCountNr }}

{{ 'Datum' | trans }} {{ invoice.dateInvoice | date('Y m d') }}

{% if logo is not empty %} {% endif %}
{% if invoiceDate_show %} {% endif %}
Vår ref
NICLAS AXELSSON
Er ref
{{ invoice.erReference is not empty ? invoice.erReference : '-' }}
Förfallodatum
{{ invoiceDueDate ? invoiceDueDate | date('Y m d') : '-' }}
Betalningsvillkor
{{ invoice.paymentType is not empty ? invoice.paymentType : '-' }}
{{ 'Kund' | trans }}
{{ customer ? customer.name ~ ' - ' ~ customer.customerNr : invoice.customerName ~ ' - ' ~ invoice.customerNr }}
{{ customer ? customer.address : invoice.customerAddress }}
{{ customer ? customer.postCode : invoice.customerPostCode }} {{ customer ? customer.city : invoice.customerCity }}
{{ customer ? customer.country : invoice.customerCountry }}
{{ customer ? customer.email : invoice.customerEmail }}
{{ customer ? customer.mobile : invoice.customerMobile }}

{{ 'Sammanställning' | trans }}

{% set totalSubTotal = 0 %} {% set totalSum = 0 %} {% set totalShippingFee = 0 %} {% set invoiceShippingFeeExclTax = invoice.shippingFeeExclTax %} {% set invoiceShippingFeeTax = invoice.shippingFeeInclTax - invoice.shippingFeeExclTax %} {% for order in orders %} {% set subTotal = 0 %} {% set orderTotalTax = order.totalTax %} {% if isForeignerInvoice %} {% set orderTotalTax = 0 %} {% endif %} {% for item in order.items %} {% set subTotal = subTotal + (item.quantity * item.price) %} {% endfor %} {% set totalSum = totalSum + order.totalSum %} {% set totalShippingFee = totalShippingFee + order.shippingFee %} {% set totalSubTotal = totalSubTotal + subTotal %} {% endfor %} {% set totalSum = totalSum + invoiceShippingFeeExclTax %}
{{ 'Ordernr' | trans }} {{ 'Datum' | trans }} {{ 'Antal' | trans }} {{ 'Frakt' | trans }} {{ 'Moms' | trans }} {{ 'Summa' | trans }}
{{ order.orderNr }} {{ order.dateOrder | date('Y-m-d') }} {{ order.totalQuantity }} {{ order.shippingFee | number_format(2, '.', ' ') }} {{ 'kr' | trans }} {{ orderTotalTax | number_format(2, '.', ' ') }} {{ 'kr' | trans }} {{ order.totalSum | number_format(2, '.', ' ') }} {{ 'kr' | trans }}

{% set total = invoice.totalSumInclTax %} {% set newTotal = total | round(0, 'common') %}
{{ 'Kundens momsregsnr' | trans }} {{ invoice.customerVATNr | raw }}   {{ 'Moms' | trans }} {{ invoice.totalTax | number_format(2, '.', ' ') }} {{ 'kr' | trans }}
{{ 'Subtotal ex moms' | trans }} {{ totalSubTotal | number_format(2, '.', ' ') }} {{ 'kr' | trans }}   {{ 'öresutjämning' | trans | capitalize }} {{ (newTotal - total) | number_format(2, '.', ' ') }} {{ 'kr' | trans }}
{{ 'Frakt ex moms' | trans }} {{ invoiceShippingFeeExclTax | number_format(2, '.', ' ') }} {{ 'kr' | trans }}   {{ 'Total' | trans }} {{ newTotal | number_format(2, '.', ' ') }} {{ 'kr' | trans }}
{% if invoice.foreignerInvoice %}
BANK DETAILS
SWIFTKOD: SWEDSESS. BANKNAME: SWEDBANK
IBANNR: SE468000083808 4637704315
{% endif %}