{% load static custom_filters i18n %} {# Meme mise en page que la facture A4 (_facture_document.html), sans elements de securite : une Pro-Forma n'est pas fiscalisee. #}
{% if is_duplicata %}
DUPLICATA PRO-FORMA
{% endif %}

{{ config.nom_entreprise|default:""|upper }}

{% if document_point_de_vente %}
Point de vente : {{ document_point_de_vente.nom }}
{% endif %} {% if document_point_de_vente.adresse %}
Adresse : {{ document_point_de_vente.adresse|linebreaksbr }}
{% endif %}
NIF : {{ config.nif|default:"-" }} · RCCM : {{ config.rccm|default:"-" }}
{% if config.id_nat %}
Id. Nat : {{ config.id_nat }}
{% endif %} {% if config.telephone %}
Tél. : {{ config.telephone }}
{% endif %} {% if config.email %}
{{ config.email }}
{% endif %}
Logo {# Titre et numero parametrables : l'addition restaurant reutilise ce document. #}

{{ document_titre|default:"FACTURE PRO-FORMA" }}

N° {{ document_numero|default:proforma.numero }}
{{ proforma.date_proforma|date:"d/m/Y H:i" }}
Opérateur : {{ proforma.vendeur.username|default:"-"|upper }}

CLIENT

{% if client %}
NIF : {{ client.nif|default:"-" }}
{% if client.client_type.code == "PP" %}Nom du client :{% else %}Raison sociale :{% endif %} {{ client.nom_complet|default:"Client de passage"|upper }}
Type de client : {% if client.client_type %}{{ client.client_type.name|default:client.client_type.code }}{% if client.client_type.name and client.client_type.code %} ({{ client.client_type.code }}){% endif %}{% else %}-{% endif %}
Adresse : {{ client.adresse|default:"-" }}
Téléphone : {{ client.telephone|default:"-" }}
Email : {{ client.email|default:"-" }}
{% else %}
NIF : -
Nom du client : CLIENT DE PASSAGE
Type de client : -
Adresse : -
Téléphone : -
Email : -
{% endif %}
{% if proforma.commentaire %}
{{ proforma.commentaire|linebreaksbr }}
{% endif %} {% for ligne in lignes_document %} {% empty %}{% endfor %} {% for tax in tax_details %} {% if tax.rate > 0 or tax.display_as_taxable %} {% else %} {% endif %} {% if tax.ts_valeur > 0 %}{% endif %} {% endfor %}
N°DésignationPrix unitaire ({{ mode_dgi_display }})QuantitéMontant ({{ mode_dgi_display }})
{{ forloop.counter }} {{ ligne.designation }}{% if ligne.unite_mesure %} — {{ ligne.unite_mesure }}{% endif %} [{{ ligne.tax_group_code_affiche|default:"A" }}] [{{ ligne.type_article_code_affiche|default:"BIE" }}]{% if ligne.remise > 0 %}
Remise : -{{ ligne.remise|money:"FC" }}
{% endif %}
{{ ligne.prix_unitaire|money:"FC" }} {{ ligne.quantite }} {{ ligne.montant_affiche|money:"FC" }}
Aucune ligne
Nombre d'articles : {{ lignes_document|length }}
H.T. [{{ tax.code }}] Taxable {{ tax.rate|format_amount:2 }}%{{ tax.ht|money:"FC" }}
TVA [{{ tax.code }}] Taxable {{ tax.rate|format_amount:2 }}%{{ tax.tva|money:"FC" }}
Total [{{ tax.code }}] {{ tax.group_display_label }}{{ tax.ht|money:"FC" }}
T.S. [{{ tax.code }}] {{ tax.group_display_label }}{{ tax.ts_valeur|money:"FC" }}
TOTAL TVA{{ total_tva|money:"FC" }}
NET A PAYER (TTC){{ total_ttc|money:"FC" }}
Reste à payer{{ solde_a_payer|money:"FC" }}
Arrêtée la présente {{ document_nom|default:"Pro-Forma" }} à la somme de :
{{ total_ttc|as_words_be|upper }} FRANCS CONGOLAIS
Modes de paiement : {% for paiement in paiements_document %}{{ paiement.mode_paiement }} : {{ paiement.montant_verse|money:paiement.devise }}{% empty %}Aucun paiement enregistré{% endfor %}
Soit {{ proforma.montant_total_usd|money:"USD" }} (Taux: {{ taux_change|money:"FC" }}/USD)