Add payment details block on ticket PDF after practical info and conditions

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-21 16:57:55 +01:00
parent 7a29372b60
commit 1cfd826fc3

View File

@@ -399,6 +399,26 @@
</td>
</tr>
</table>
{% if order.paymentMethod %}
<table style="width: 100%; border-collapse: collapse; margin-top: 8px; border-top: 1px solid #eee; padding-top: 6px;">
<tr>
<td style="padding-top: 6px;">
<div style="font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 4px;">Details du paiement</div>
<div style="font-size: 9px; color: #555;">
Methode : {{ order.paymentMethod }}
{% if order.cardBrand and order.cardLast4 %}
{{ order.cardBrand|upper }} **** {{ order.cardLast4 }}
{% endif %}
{% if order.paidAt %}
&bull; Date : {{ order.paidAt|date('d/m/Y H:i') }}
{% endif %}
&bull; Montant : {{ order.totalHTDecimal|number_format(2, ',', ' ') }} &euro; HT
&bull; Commande : {{ order.orderNumber }}
</div>
</td>
</tr>
</table>
{% endif %}
</div>
<!-- FOOTER -->