{% extends '@Commercial/commercial/layout.html.twig' %} {% block commercial_title %}Catégories de dépenses{% endblock %} {% block commercial_content %}

Catégories de dépenses

Structurez les dépenses pour les analyses de rentabilité.

{% if is_granted('EXPENSE_CATEGORY_MANAGE', company) %} {% endif %} Exporter {% if is_granted('EXPENSE_CATEGORY_MANAGE', company) %} {% endif %}
Catégories de dépenses {{ view.kpis.total }}
Actives {{ view.kpis.active }}
Archivées {{ view.kpis.archived }}
Dépenses classées {{ view.kpis.classified }}

Toutes les catégories

{{ view.rows|length }}
{% for row in view.rows %}{% set category = row.category %}{% set type_label = category.categoryType == 'global' ? 'Globale' : (category.categoryType == 'mileage' ? 'Kilométrique' : 'Fournisseur') %}{% set type_icon = category.categoryType == 'global' ? 'ti-world' : (category.categoryType == 'mileage' ? 'ti-road' : 'ti-building') %} {% else %}{% endfor %}
CatégorieCodeTypeDépensesMontant totalStatutActions
{{ category.nom }}{{ category.description ?: 'Aucune description' }}
{{ category.code }}{{ type_label }}{{ row.expense_count }} dép.{{ row.amount|number_format(2, ',', ' ') }} €{{ category.deleted ? 'Archivée' : 'Active' }}
Aucune catégorie ne correspond aux filtres.
{{ view.kpis.total }} catégorie{{ view.kpis.total > 1 ? 's' : '' }} — dont {{ view.kpis.archived }} archivée{{ view.kpis.archived > 1 ? 's' : '' }}

Montant total toutes catégories : {{ view.grand_total|number_format(2, ',', ' ') }} €

{% if is_granted('EXPENSE_CATEGORY_MANAGE', company) %}{% endif %}
{% for row in view.rows %}{% set category = row.category %}{% if not category.deleted and is_granted('EXPENSE_CATEGORY_MANAGE', company) %}{% endif %}{% endfor %}
Ordre enregistré
{% endblock %}