Comptabilite (Super Admin) : - ComptabiliteController avec 7 exports CSV/JSON compatibles SAGE (journal ventes, grand livre, FEC, balance agee, reglements, commissions Stripe 1.5%+0.25E, couts services) - Export PDF via ComptaPdf (FPDF) avec bloc legal pre-rempli, tableau pagine, champ signature DocuSeal - Signature electronique DocuSeal + callback + envoi email signe avec template dedie (compta_export_signed.html.twig) - Rapport financier public (RapportFinancierPdf) : recettes par service, depenses (Stripe, infra, prestataires), bilan excedent/deficit - Codes comptables clients EC-XXXX (plus de 411xxx) Prestataires (Super Admin) : - Entite Prestataire (raisonSociale, siret, email, phone, adresse) - Entite FacturePrestataire (numFacture, montantHt, montantTtc, year, month, isPaid, PDF via Vich) - CRUD complet avec recherche SIRET via proxy API data.gouv.fr - Commande cron app:reminder:factures-prestataire (5 du mois) - Factures prestataires integrees dans export couts services - Sidebar Super Admin : entree Prestataires + Comptabilite Stats (/admin/stats) : - Cout prestataire dynamique depuis FacturePrestataire - Fusion Infra + Prestataire en "Cout de fonctionnement" - Commission Stripe corrigee (1.5% + 0.25E par transaction) Divers : - DocuSealService::sendComptaForSignature() + getApi() - Customer::generateCodeComptable() format EC-XXXX-XXXXX - Protection double prefixe EC- a la creation client - Bouton regenerer PDF cache quand advert state=accepted - Modals sans script inline (data-modal-open/close dans app.js) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
43 lines
2.2 KiB
Twig
43 lines
2.2 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Verification - Avis {{ advert.orderNumber.numOrder }} - Association E-Cosplay{% endblock %}
|
|
|
|
{% block body %}
|
|
<main class="max-w-lg mx-auto px-4 py-16">
|
|
{% for t, messages in app.flashes %}
|
|
{% for message in messages %}
|
|
<div class="mb-4 p-4 glass font-medium text-sm {{ t == 'success' ? 'border-2 border-green-600 text-green-800' : 'border-2 border-red-600 text-red-800' }}">{{ message }}</div>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
<div class="glass p-8">
|
|
<h1 class="text-2xl font-black uppercase tracking-tighter mb-2">Verification de securite</h1>
|
|
<p class="text-sm text-gray-600 mb-6">
|
|
Pour acceder a l'avis de paiement <strong class="font-mono">{{ advert.orderNumber.numOrder }}</strong>, un code a 6 chiffres a ete envoye a <strong>{{ customer.email|slice(0, 3) }}***@{{ customer.email|split('@')[1] }}</strong>.
|
|
</p>
|
|
|
|
{% if error %}
|
|
<div class="mb-4 p-3 bg-red-50 border-2 border-red-600 text-red-700 text-sm font-bold">{{ error }}</div>
|
|
{% endif %}
|
|
|
|
<form method="post" action="{{ path('app_order_verify', {numOrder: numOrder}) }}" class="flex flex-col gap-4">
|
|
<div>
|
|
<label for="code" class="text-xs font-black uppercase block mb-2">Code de verification</label>
|
|
<input type="text" id="code" name="code" required maxlength="6" pattern="[0-9]{6}" placeholder="000000"
|
|
class="w-full px-4 py-4 input-glass text-2xl font-mono font-black text-center tracking-[0.5em]" autocomplete="one-time-code" inputmode="numeric">
|
|
</div>
|
|
<button type="submit" class="px-6 py-3 btn-gold font-black uppercase text-sm tracking-widest">
|
|
Valider
|
|
</button>
|
|
</form>
|
|
|
|
<div class="flex items-center justify-between mt-4">
|
|
<p class="text-[10px] text-gray-400">Le code expire dans 15 minutes.</p>
|
|
<form method="post" action="{{ path('app_order_verify_resend', {numOrder: numOrder}) }}" class="inline">
|
|
<button type="submit" class="text-[10px] text-indigo-600 font-bold uppercase hover:underline">Renvoyer le code</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
{% endblock %}
|