{% extends "core/base.html" %}{% block content %}

{{ document.type }} · {{ document.get_status_label }}

{{ document.number }}

{{ document.subject|default:'' }}

{% if document.direction == "incoming" or pdp_link.imported %}Télécharger l’original{% else %}Télécharger le PDF{% endif %}{% if document.status == "draft" and can_write %}Modifier{% endif %}

ÉMETTEUR

{{ document.seller.name }}

{{ document.seller.address_line1 }}
{{ document.seller.postal_code }} {{ document.seller.city }} · {{ document.seller.country_code }}

DESTINATAIRE

{{ document.buyer.name|default:"Sans client" }}

{{ document.buyer.address_line1 }}
{{ document.buyer.postal_code }} {{ document.buyer.city }} · {{ document.buyer.country_code }}

Émission : {{ document.issue_date }} · Échéance : {{ document.due_date }}

{{ document.reference|default:'' }}
{% include "core/lines.html" %}

Total HT {{ document.total_excluding_tax|floatformat:2 }} {{ document.currency_code }}

TVA {{ document.total_vat|floatformat:2 }} {{ document.currency_code }}

{% if document.rounding_amount %}

Ajustement d'arrondi {{ document.rounding_amount|floatformat:2 }}

{% endif %}

Total TTC {{ document.total_including_tax|floatformat:2 }} {{ document.currency_code }}

{% if document.type != "quote" and document.type != "credit_note" %}

Reste dû {{ document.amount_due|floatformat:2 }} {{ document.currency_code }}

{% endif %}

{{ document.payment_terms|default:''|linebreaksbr }}

{{ document.notes|default:''|linebreaksbr }}

{% if can_write %}

Actions

{% if document.status == "draft" or document.status == "simulated" %}{% if document.type != "quote" %}
{% csrf_token %}
{% endif %}
{% csrf_token %}
{% if document.type != "quote" %}
{% csrf_token %}
{% endif %}{% endif %} {% if document.type == "quote" %}{% if document.status == "sent" or document.status == "draft" %}
{% csrf_token %}
{% endif %}{% if document.status == "accepted" %}
{% csrf_token %}
Facture d'avancement{% endif %}{% endif %} {% if document.direction == "incoming" and document.status != "paid" %}
{% csrf_token %}
{% csrf_token %}
{% csrf_token %}
{% endif %} {% if document.amount_due > 0 %}
{% csrf_token %}
{% if document.direction == "outgoing" and document.status == "sent" %}
{% csrf_token %}
{% endif %}{% endif %} {% if document.direction == "outgoing" and document.status == "draft" or document.type == "quote" and document.status != "cancelled" %}
{% csrf_token %}
{% endif %}

Les emails préparés apparaissent dans la boîte d'envoi. Le transport dépend de la configuration de votre instance.

{% endif %} {% include "core/pdp_followup.html" %}

Fichiers

{% if can_write %}
{% csrf_token %}
{% endif %}

Historique

    {% for event in events %}
  1. {{ event.event_label }}{{ event.occurred_at|default:event.created_at }}
  2. {% endfor %}
{% for d in linked %}

{{ d.number }} · {{ d.total_including_tax|floatformat:2 }} {{ d.currency_code }}

{% endfor %}
{% endblock %}