{# Header #}
{{ settings.effectiveShopName }}
{% if settings.receiptHeader %}
{{ settings.receiptHeader|nl2br }}
{% endif %} {% if company.address %}
{{ company.address }}
{% endif %} {% if company.phone %}
Tel: {{ company.phone }}
{% endif %} {% if company.ninea %}
NINEA: {{ company.ninea }}
{% endif %}
{# Info transaction #} {% if sale.registerSession %} {% endif %}
Date:{{ sale.createdAt|date('d/m/Y H:i') }}
Ticket:{{ sale.saleNumber }}
Caisse:{{ sale.registerSession.register.name }}
Vendeur:{{ sale.seller.fullName|default(sale.seller.email|split('@')[0]) }}
{# Lignes #} {% for line in sale.lines %} {% if line.discountAmount > 0 %} {% endif %} {% endfor %}
{{ line.productName }}
  {{ line.unitPrice|number_format(0, ',', ' ') }} x {{ line.quantity }} {{ line.total|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
  Remise -{{ line.discountAmount|number_format(0, ',', ' ') }}
{# Totaux #} {% if sale.discountAmount > 0 %} {% endif %} {% if settings.receiptShowTax %} {% endif %}
Sous-total: {{ sale.subtotal|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
Remise: -{{ sale.discountAmount|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
TVA ({{ settings.taxRate }}%): {{ sale.taxAmount|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
TOTAL: {{ sale.total|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
{# Paiements #} {% for payment in sale.payments %} {% endfor %} {% if sale.changeAmount > 0 %} {% endif %}
{{ payment.methodLabel }}{% if payment.providerLabel %} ({{ payment.providerLabel }}){% endif %}: {{ payment.amount|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
Monnaie: {{ sale.changeAmount|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
{# Footer #}