{{ 'Fakturajournal' | trans | upper }} {{ invoiceJournal.invoiceJournalNr }}

{{ 'Datum' | trans }} {{ invoiceJournal.dateCreated | date('Y m d') }}

{% if logo is not empty %} {% endif %}

{{ 'Sammanställning' | trans }}

{% set totalSumInclTaxEuInside = 0 %} {% set totalSumInclTaxEuOutside = 0 %} {% set totalSumExclTax = 0 %} {% set totalSumInclTax = 0 %} {% set totalTax = 0 %} {% set totalShippingFee = 0 %} {% for invoice in invoices %} {% if invoice.euInsideOutside == 'eu_inside' %} {% set totalSumInclTaxEuInside = totalSumInclTaxEuInside + invoice.totalSumInclTax %} {% elseif nvoice.euInsideOutside == 'eu_inside' %} {% set totalSumInclTaxEuOutside = totalSumInclTaxEuOutside + invoice.totalSumInclTax %} {% endif %} {% set totalSumExclTax = totalSumExclTax + invoice.totalSumExclTax %} {% set totalSumInclTax = totalSumInclTax + invoice.totalSumInclTax %} {% set totalTax = totalTax + invoice.totalTax %} {% set totalShippingFee = totalShippingFee + invoice.shippingFeeExclTax %} {% endfor %}
{{ 'Invoice' | trans }} {{ 'Kund' | trans }} {{ 'Fakturadatum' | trans }} {{ 'Total exkl. moms' | trans }} {{ 'Frakt' | trans }} {{ 'Moms' | trans }} {{ 'Summa' | trans }}
{{ invoice.invoiceNr }} {{ invoice.customerName }}
{{ invoice.customerEmail }}
{{ invoice.dateInvoice | date('Y-m-d') }} {{ invoice.totalSumExclTax | number_format(2, '.', ' ') }} {{ 'kr' | trans }} {{ invoice.shippingFeeExclTax | number_format(2, '.', ' ') }} {{ 'kr' | trans }} {{ invoice.totalTax | number_format(2, '.', ' ') }} {{ 'kr' | trans }} {{ invoice.totalSumInclTax | number_format(2, '.', ' ') }} {{ 'kr' | trans }}

      {{ 'Frakt ex moms' | trans }} {{ totalShippingFee | number_format(2, '.', ' ') }} {{ 'kr' | trans }}
      {{ 'Moms' | trans }} {{ totalTax | number_format(2, '.', ' ') }} {{ 'kr' | trans }}
      {{ 'Total exkl. moms' | trans }} {{ totalSumExclTax | number_format(2, '.', ' ') }} {{ 'kr' | trans }}
      {{ 'Total inkl. moms' | trans | capitalize }} {{ totalSumInclTax | number_format(2, '.', ' ') }} {{ 'kr' | trans }}
      {{ 'Försäljning inom EU' | trans | capitalize }} {{ totalSumInclTaxEuInside | number_format(2, '.', ' ') }} {{ 'kr' | trans }}
      {{ 'Försäljning utanför EU' | trans | capitalize }} {{ totalSumInclTaxEuOutside | number_format(2, '.', ' ') }} {{ 'kr' | trans }}