{% extends 'backoffice/base.html' %} {% block title %} Invoice - {{invoice.contract.customer.name}} {% endblock %} {% block metaseo %} {% endblock %} {% block content %}
  • AZ
  • Factures
  • {{invoice.contract.customer.name}}
{% comment %} {% if invoice.state == "PENDING" or invoice.state == "ACCEPTED" and invoice.treatedBy != user.cuser %} traitée par: {{invoice.treatedBy.user.first_name}} {{invoice.treatedBy.user.last_name}}    {% endif %} {% endcomment %} {% if invoice.state == "INITIAL" %} {% if user.cuser.type == "ADMIN" or user.cuser.type == "ADMIN_PROD" %} {% endif %} {% endif %} {% if invoice.state == "PENDING" %} {% if user.cuser.type == "ADMIN" or user.cuser.type == "ADMIN_PROD" %} {% endif %} {% endif %} {% comment %} {% endcomment %}

{{invoice.contract.customer.name}}

{% comment %} States {% endcomment %} Etat de la facture:   {% if invoice.state == "INITIAL" %} Initial {% endif %} {% if invoice.state == "PENDING" %} En attente de paiement {% endif %} {% if invoice.state == "SUBMITTED" %} Soumise {% endif %} {% if invoice.state == "PAID" %} Payée {% endif %}
{% csrf_token %} {% for group in form %}
{{group.name}}
{% for gf in group.fields %}
{% for field in gf %} {% if field.type == 'input' or field.type == 'text' or field.type == 'email' or field.type == "tel" or field.type == "number" %}

{% comment %} {% endcomment %}

{% endif %} {% if field.type == 'date' %}

{% endif %} {% if field.type == 'select' %}
{% endif %} {% if field.type == "file" %}
{% endif %} {% if field.type == "textarea" %}

{% endif %} {% endfor %}
{% endfor %}
{% endfor %} {% if user.cuser.type == "CUSTOMER_DRH" or user.cuser.type == "ADMIN" or user.cuser.type == "ADMIN_PROD" %} {% if invoice.state != "PAID" %}

{% endif %} {% endif %}
{% endblock content %}