{% extends "accounting/_base.html" %} {% block page_title %}Sections analytiques{% endblock %} {% block accounting_content %}

Sections analytiques

‹ Résultat par section · une section par activité, magasin, canal de vente ou projet. Elle s'indique à la saisie, par l'API (lignes de vente et d'achat) ou après coup sur chaque écriture.

{% for s in sections %} {% empty %}{% endfor %}
CodeLibelléLignesStatut
{{ s.code }}{{ s.label }}{{ s.lines }} {% if s.is_active %}Active{% else %}Inactive{% endif %} {% if perms.accounting.change_analyticsection %}modifier{% endif %}
Aucune section.
{% if perms.accounting.add_analyticsection or section and perms.accounting.change_analyticsection %}
{% csrf_token %}

{% if section %}Section {{ section.code }}{% else %}Nouvelle section{% endif %}

{% for field in form %}
{% if field.name == "is_active" %}
{{ field }} {{ field.label_tag }}
{% else %}{{ field.label_tag }} {{ field }}{% endif %} {% for error in field.errors %}
{{ error }}
{% endfor %}
{% endfor %} {% if section %}Annuler{% endif %}
{% endif %}
{% endblock %}