{% extends '@Commercial/billing/layout.html.twig' %} {% block commercial_title %}{{ title }}{% endblock %} {% block billing_heading %}{% endblock %} {% block billing_toolbar %}{% endblock %} {% block billing_content %} {% set historical_mode = historical_mode|default(false) %} {% set project_required = require_invoice_project|default(false) and input.type in ['invoice', 'deposit_invoice', 'balance_invoice'] and not historical_mode %} {% set type_label = type_labels[input.type]|default(input.type) %} {% set form_lines = input.lines|length ? input.lines : [{position: 1, lineType: 'line', label: '', description: '', quantity: '1.000', unitPriceHt: '0.00', discountRate: '0.00', vatRate: '20.00', sourceType: 'free_line'}] %} {% set back_url = historical_mode ? path('billing_historical_invoice_index') : (document ? path('billing_document_show', {idtoken: document.idtoken}) : (input.type == 'quote' ? path('billing_quote_index') : path('billing_invoice_index'))) %}
Retour

{{ historical_mode ? 'Ajouter une facture historique' : (document ? 'Modifier le document' : 'Créer un document') }} {{ historical_mode ? 'HISTORIQUE' : (document ? document.status|upper : 'DRAFT') }}

{{ type_label }}{% if document and document.number %} · {{ document.number }}{% endif %}

Annuler
{% if errors._global is defined %}
{{ errors._global }}
{% endif %}

Informations générales

{% if historical_mode %} {% else %}{% endif %} {% if input.type in ['invoice','deposit_invoice','balance_invoice'] %}{% endif %}

Texte d’introduction

Lignes du document

Sélectionnez plusieurs produits en une fois ou ajoutez une ligne libre.

Produit / serviceQtéPrix HTRemiseTVATotal HT
{% for line in form_lines %}
{{ line.label ?: 'Ligne sans libellé' }}{{ line.description|striptags|slice(0, 120) }}{% if errors['lines_' ~ loop.index0] is defined %}{{ errors['lines_' ~ loop.index0] }}{% endif %} {{ line.quantity }}
{% endfor %}

Notes au client

Conditions & règlement

Modifier la ligne

Ajouter des produits

ProduitDescriptionPrix HTTVA
{% for product in products %}{% else %}

Aucun produit disponible.

{% endfor %}
{% endblock %}