{% extends 'app/base.html.twig' %} {% set moisNoms = ['', 'Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'] %} {% set moisNomsAbr = ['', 'Jan','Fév','Mar','Avr','Mai','Jun','Jul','Aoû','Sep','Oct','Nov','Déc'] %} {% block title %}Synthèses — {{ moisNoms[mois] }} {{ annee }}{% endblock %} {% block body %} {# ── En-tête + navigation + toggle HT/TTC ────────────────────────────────────── #}
{{ moisNoms[mois] }} {{ annee }}
| Mois | Ventes | Achats | Cessions | Avoirs | Stock Début | Stock Fin | Var. Stock | Consommé | Couverts | Coût Mat./Couv. | Charges Fix. | Coût Tot./Couv. | Résultat | Résultat Complet |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ ligne.mois_label }} | {{ (ligne.ca_ventes ?? 0)|number_format(2, ',', ' ') }} € {{ (ligne.ca_ventes_ht ?? 0)|number_format(2, ',', ' ') }} € | {{ (ligne.total_achats ?? 0)|number_format(2, ',', ' ') }} € {{ (ligne.total_achats_ht ?? 0)|number_format(2, ',', ' ') }} € | {% if (ligne.total_cessions ?? 0) > 0 %} −{{ (ligne.total_cessions)|number_format(2, ',', ' ') }} € −{{ (ligne.total_cessions_ht ?? 0)|number_format(2, ',', ' ') }} € {% else %}—{% endif %} | {% if (ligne.total_avoirs ?? 0) > 0 %} −{{ (ligne.total_avoirs)|number_format(2, ',', ' ') }} € −{{ (ligne.total_avoirs_ht ?? 0)|abs|number_format(2, ',', ' ') }} € {% else %}—{% endif %} | {{ (ligne.stock_debut ?? 0)|number_format(2, ',', ' ') }} € {{ (ligne.stock_debut_ht ?? 0)|number_format(2, ',', ' ') }} € | {{ (ligne.stock_fin ?? 0)|number_format(2, ',', ' ') }} € {{ (ligne.stock_fin_ht ?? 0)|number_format(2, ',', ' ') }} € | {% set variation = ligne.variation_stock ?? 0 %} {% set variationHt = ligne.variation_stock_ht ?? 0 %}{{ variation >= 0 ? '+' : '' }}{{ variation|number_format(2, ',', ' ') }} € {{ variationHt >= 0 ? '+' : '' }}{{ variationHt|number_format(2, ',', ' ') }} € | {{ (ligne.achats_consommes ?? 0)|number_format(2, ',', ' ') }} € {{ (ligne.achats_consommes_ht ?? 0)|number_format(2, ',', ' ') }} € | {{ ligne.total_repas ?? 0 }} | {{ (ligne.cout_par_couvert ?? 0)|number_format(2, ',', ' ') }} € {{ (ligne.cout_par_couvert_ht ?? 0)|number_format(2, ',', ' ') }} € | {% if (ligne.charges_fixes ?? 0) > 0 %} {{ (ligne.charges_fixes)|number_format(2, ',', ' ') }} € {{ (ligne.charges_fixes_ht ?? 0)|number_format(2, ',', ' ') }} € {% else %}—{% endif %} | {% set coutTot = ligne.cout_total_par_couvert ?? 0 %} {% set coutAff = coutTot > 0 ? coutTot : (ligne.cout_par_couvert ?? 0) %} {% set coutTotHt = ligne.cout_total_par_couvert_ht ?? 0 %} {% set coutAffHt = coutTotHt > 0 ? coutTotHt : (ligne.cout_par_couvert_ht ?? 0) %} {% if coutAff > 0 %} {{ coutAff|number_format(2, ',', ' ') }} € {% else %}—{% endif %} {% if coutAffHt > 0 %} {{ coutAffHt|number_format(2, ',', ' ') }} € {% else %}—{% endif %} | {% set res = ligne.resultat ?? 0 %} {% set resHt = ligne.resultat_ht ?? 0 %}{{ res >= 0 ? '+' : '' }}{{ res|number_format(2, ',', ' ') }} € {{ resHt >= 0 ? '+' : '' }}{{ resHt|number_format(2, ',', ' ') }} € | {% set resC = ligne.resultat_complet ?? 0 %} {% set resCHt = ligne.resultat_complet_ht ?? 0 %}{{ resC >= 0 ? '+' : '' }}{{ resC|number_format(2, ',', ' ') }} € {{ resCHt >= 0 ? '+' : '' }}{{ resCHt|number_format(2, ',', ' ') }} € |