Add force validate button in admin orders + fix Stripe Connect account in sync
- Add POST /admin/commandes/{id}/forcer-validation to force validate pending
orders (generates tickets, sends emails, notifies organizer)
- Add "Forcer validation" button in orders template for pending orders
- Fix retrievePaymentIntent to query on organizer's Connect account
- Update stripe:sync to pass organizer stripeAccountId when checking payments
- Add 3 tests for force validation (pending, non-pending, not found)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -100,9 +100,13 @@
|
||||
<span class="admin-badge-indigo text-xs font-black uppercase ml-1">Invitation</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<td class="text-right whitespace-nowrap">
|
||||
{% if order.status == 'paid' %}
|
||||
<a href="{{ path('app_admin_order_tickets', {id: order.id}) }}" target="_blank" class="inline-block text-[10px] font-black uppercase tracking-widest text-indigo-600 hover:text-indigo-800 transition-all" title="Telecharger les billets">Billets</a>
|
||||
{% elseif order.status == 'pending' %}
|
||||
<form method="post" action="{{ path('app_admin_order_force_validate', {id: order.id}) }}" onsubmit="return confirm('Forcer la validation de la commande {{ order.orderNumber }} ? Les billets seront generes et envoyes au client.')">
|
||||
<button type="submit" class="text-[10px] font-black uppercase tracking-widest text-green-600 hover:text-green-800 transition-all">Forcer validation</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user