{% extends 'layouts/authenticated.html.twig' %} {% block page_title %}Vente {{ sale.saleNumber }}{% endblock %} {% block content %}

{{ sale.saleNumber }}

{{ sale.createdAt|date('d/m/Y à H:i') }} — {{ sale.statusLabel }}

Ticket PDF Facture {% if sale.completed or sale.status == 'partial_refund' %} {% set hasRefundableLines = false %} {% for line in sale.lines %} {% if line.refundableQuantity > 0 %} {% set hasRefundableLines = true %} {% endif %} {% endfor %} {% if hasRefundableLines %} Rembourser {% endif %} {% endif %} {% if sale.completed %} {% endif %} Retour
{# Lignes de vente #}

Articles ({{ sale.itemsCount }})

{% for line in sale.lines %} {% endfor %}
Produit Qté Prix unit. Remise Total
{{ line.productName }}
{{ line.productSku }}
{{ line.quantity }} {{ line.unitPrice|number_format(0, ',', ' ') }} {{ settings.currencySymbol }} {% if line.discountAmount > 0 %}-{{ line.discountAmount|number_format(0, ',', ' ') }}{% else %}-{% endif %} {{ line.total|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
{# Paiements #}

Paiements

{% for payment in sale.payments %}
{{ payment.methodLabel }}
{% if payment.provider %}
{{ payment.providerLabel }}
{% endif %} {% if payment.reference %}
Réf: {{ payment.reference }}
{% endif %}
{{ payment.amount|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
{% endfor %}
{# Sidebar résumé #}

Résumé

Sous-total
{{ sale.subtotal|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
{% if sale.discountAmount > 0 %}
Remise{{ sale.discountPercent ? ' (' ~ sale.discountPercent ~ '%)' : '' }}
-{{ sale.discountAmount|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
{% endif %} {% if settings.receiptShowTax %}
TVA
{{ sale.taxAmount|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
{% endif %}
Total
{{ sale.total|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
Payé
{{ sale.amountPaid|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
{% if sale.changeAmount > 0 %}
Monnaie rendue
{{ sale.changeAmount|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
{% endif %}

Informations

Vendeur
{{ sale.seller.fullName|default(sale.seller.email) }}
{% if sale.registerSession %}
Caisse
{{ sale.registerSession.register.name }}
{% endif %}
Statut
{{ sale.statusLabel }}
{% if sale.voided %}

Annulée par: {{ sale.voidedBy.fullName|default('?') }}

Le: {{ sale.voidedAt|date('d/m/Y H:i') }}

Motif: {{ sale.voidReason }}

{% endif %}
{# Modal Annulation #} {% if sale.completed %} {% endif %}
{% endblock %}