{% extends '@admin/base.html.twig' %} {% set totalPayments = 0 %} {% set totalChange = 0 %} {% for payment in payments %} {% set totalPayments = totalPayments + payment.amount %} {% set totalChange = totalChange + payment.changeAmount %} {% endfor %} {% set paymentLabels = { 'cash': 'Espèces', 'card': 'Carte', 'transfer': 'Virement', 'cheque': 'Chèque', 'deferred': 'Différé', 'draft': 'Traite', 'gift_ticket': 'Tickets cadeaux' } %} {% set lineTypeLabels = { 'product': 'Produit', 'pack': 'Pack', 'manual': 'Ligne libre' } %} {% block title %}Detail vente point de vente{% endblock %} {% block subheader %}
| Type | Article | Reference | Qt | PU TTC | Remise | Total TTC |
|---|---|---|---|---|---|---|
| {{ lineTypeLabels[line.type]|default(line.type|capitalize) }} | {{ line.name }} {% if line.description %}{{ line.description }} {% endif %} |
{{ line.reference ?: '-' }} | {{ line.quantity ?: 0 }} | {{ line.priceTtc ? line.priceTtc|number_format(3, '.', ' ') : '0.000' }} TND | {% if line.discount %}{{ line.discount|number_format(3, '.', ' ') }} {{ line.discountType == 'percent' ? '%' : 'TND' }}{% else %}-{% endif %} | {{ line.totalAmountTtc|number_format(3, '.', ' ') }} TND |
| Declinaison |
{% if line.produitDeclinationValue and line.produitDeclinationValue.image %}
{{ line.name }}
{% if line.description %}{{ line.description }} {% endif %}
|
{{ line.reference ?: '-' }} | {{ line.quantity ?: 0 }} | {{ line.priceTtc ? line.priceTtc|number_format(3, '.', ' ') : '0.000' }} TND | {% if line.discount %}{{ line.discount|number_format(3, '.', ' ') }} {{ line.discountType == 'percent' ? '%' : 'TND' }}{% else %}-{% endif %} | {{ line.totalAmountTtc|number_format(3, '.', ' ') }} TND |
| Aucune ligne enregistree. | ||||||
| Mode | Montant |
|---|---|
{{ paymentLabels[payment.method]|default(payment.method|capitalize) }} {% if payment.reference %}{{ payment.reference }} {% endif %} |
{{ payment.amount|number_format(3, '.', ' ') }} TND{% if payment.changeAmount > 0 %} Monnaie : {{ payment.changeAmount|number_format(3, '.', ' ') }} TND {% endif %} |
| Aucun paiement enregistre. | |