Files
e-cosplay/templates/artemis/intranet/customer/order/f.twig
Serreau Jovann aff07c97e1 feat(Customer): Ajoute la gestion des échéances de paiement client
Ajoute l'entité CustomerSplit et les services associés pour gérer
les échéances de paiement des clients (PDF, envoi mail, etc.).
2025-10-09 09:18:01 +02:00

38 lines
2.4 KiB
Twig

<div class="mt-2 overflow-x-auto bg-gray-800 rounded-lg shadow">
<table class="min-w-full divide-y divide-gray-700">
<thead class="bg-gray-700">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">Type</th>
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">N°</th>
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">Date</th>
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">Montant</th>
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">Statut</th>
<th class="px-6 py-3 text-center text-xs font-medium uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody>
{% for orderOrder in orderOrders %}
<tr class="hover:bg-gray-700">
<td class="px-6 py-4">FACTURE</td>
<td class="px-6 py-4">{{ orderOrder.numOrder }}</td>
<td class="px-6 py-4">{{ orderOrder.createAt|date('d/m/Y H:i') }}</td>
<td class="px-6 py-4">{{ (orderOrder|totalOrder)|format_currency('EUR') }}</td>
<td class="px-6 py-4 {% if orderOrder.state == "f-send"%} text-green-400 {% else %}text-orange-400{% endif %}">{{ orderOrder.state|trans }}</td>
<td class="px-6 py-4 text-center">
{% if orderOrder.state == "f-created" %}
<a href="{{ path('artemis_intranet_customer_view',{id:customer.id,current:'order',idFacture:orderOrder.id,act:'send'}) }}" class="block bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded">Envoyée la facture</a>
{% endif %}
{% if orderOrder.state == "f-send" %}
<a href="{{ path('artemis_intranet_customer_view',{id:customer.id,current:'order',idFacture:orderOrder.id,act:'resend'}) }}" class="block bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded">Réenvoyée la facture</a>
{% endif %}
<a target="_blank" href="{{ vich_uploader_asset(orderOrder,'facture') }}" class="block w-full mt-1 bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded">Télécharger la facture</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{{ knp_pagination_render(orderDevis) }}
</div>