feat: comptabilite + prestataires + rapport financier + stats dynamiques
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>
This commit is contained in:
21
.env
21
.env
@@ -56,7 +56,7 @@ STRIPE_WEBHOOK_SECRET_CONNECT=
|
||||
STRIPE_MODE=test
|
||||
STRIPE_FEE_RATE=0.015
|
||||
STRIPE_FEE_FIXED=25
|
||||
ADMIN_EMAIL=contact@siteconseil.fr
|
||||
ADMIN_EMAIL=contact@e-cosplay.fr
|
||||
|
||||
###> SonarQube ###
|
||||
SONARQUBE_URL=https://sn.esy-web.dev
|
||||
@@ -64,12 +64,12 @@ SONARQUBE_BADGE_TOKEN=sqb_bf06d32640147db064c99d2e893ca63a072630d7
|
||||
SONARQUBE_PROJECT_KEY=crm_siteconseil
|
||||
###< SonarQube ###
|
||||
|
||||
###> SSO SITECONSEIL (Keycloak OIDC) ###
|
||||
###> SSO E-Cosplay (Keycloak OIDC) ###
|
||||
OAUTH_KEYCLOAK_CLIENT_ID=crm_siteconseil
|
||||
OAUTH_KEYCLOAK_CLIENT_SECRET=kh1WBbnEzcEZVriXmU7IaxizChReHmIx
|
||||
OAUTH_KEYCLOAK_URL=https://auth.esy-web.dev
|
||||
OAUTH_KEYCLOAK_REALM=master
|
||||
###< SSO SITECONSEIL (Keycloak OIDC) ###
|
||||
###< SSO E-Cosplay (Keycloak OIDC) ###
|
||||
|
||||
###> Keycloak Admin Service Account ###
|
||||
KEYCLOAK_ADMIN_CLIENT_ID=crm_siteconseil_admin
|
||||
@@ -132,3 +132,18 @@ OVH_CUSTOMER=
|
||||
VAULT_URL=
|
||||
VAULT_TOKEN=
|
||||
###< vault ###
|
||||
|
||||
###> google-search-console ###
|
||||
GOOGLE_SEARCH_CONSOLE_KEY=
|
||||
###< google-search-console ###
|
||||
|
||||
###> sentry ###
|
||||
SENTRY_AUTH_TOKEN=
|
||||
SENTRY_ORG=
|
||||
SENTRY_API_URL=https://sentry.io/api/0
|
||||
###< sentry ###
|
||||
|
||||
###> tva ###
|
||||
TVA_ENABLED=false
|
||||
TVA_RATE=0.20
|
||||
###< tva ###
|
||||
|
||||
Reference in New Issue
Block a user