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

Catégories de produits

Structurez votre catalogue de produits et services pour faciliter la création des devis et factures.

Catalogue Exporter {% if is_granted('COMMERCIAL_REFERENCE_MANAGE', company) %}Nouvelle catégorie{% endif %}
Catégories actives{{ view.kpis.active }}{% if view.kpis.new_count %}+{{ view.kpis.new_count }} ce mois{% endif %}
Catégories utilisées{{ view.kpis.used }}Avec au moins une référence
Références rattachées{{ view.kpis.products }}Produits et services actifs
Catégories vides{{ view.kpis.empty }}À compléter ou archiver
Archivées{{ view.kpis.archived }}Hors catalogue
Réinitialiser
{{ view.total_rows }} catégorie{{ view.total_rows > 1 ? 's' : '' }}trouvée{{ view.total_rows > 1 ? 's' : '' }}
{% for row in view.rows %} {% set category = row.category %} {% set initials = category.name|split(' ')|map(word => word|slice(0, 1))|join|slice(0, 2)|upper %} {% else %} {% endfor %}
CatégorieCodeDescriptionProduits & servicesPositionDernière modificationStatutActions
{{ initials }}
{{ category.name }}{{ row.product_count ? row.product_count ~ ' référence' ~ (row.product_count > 1 ? 's' : '') ~ ' active' ~ (row.product_count > 1 ? 's' : '') : 'Catégorie vide' }}
{{ category.code }} {{ category.description ? category.description|striptags : '—' }} {{ row.product_count }}{% if row.total_product_count > row.product_count %}{{ row.total_product_count - row.product_count }} archivée{{ row.total_product_count - row.product_count > 1 ? 's' : '' }}{% endif %} {{ category.position }} {{ category.updatedAt|date('d/m/Y') }}{{ category.updatedAt|date('H:i') }} {{ row.archived ? 'Archivée' : 'Active' }}
{% if is_granted('COMMERCIAL_REFERENCE_MANAGE', company) %}{% endif %} {% if is_granted('COMMERCIAL_REFERENCE_MANAGE', company) and not row.archived %} {% if row.total_product_count == 0 %}
{% else %}{% endif %} {% endif %}
Aucune catégorie ne correspond aux filtres.
Affichage de {{ view.first_row }}–{{ view.last_row }} sur {{ view.total_rows }} catégories
{% endblock %}