{% extends 'base.html.twig' %} {% block body %}

Fiche fournisseur
{% if fournisseur.description %} {% endif %} {% if fournisseur.email %} {% endif %} {% if fournisseur.telephone %} {% endif %} {% if fournisseur.fax %} {% endif %} {% if fournisseur.patente %} {% endif %} {% if fournisseur.ice %} {% endif %}
Référence fournisseur {{ fournisseur.id }}
Raison sociale {{ fournisseur.raisonsociale }}
Description {{ fournisseur.description }}
Adresse {{ fournisseur.adresse }}
Email {{ fournisseur.email }}
Fixe {{ fournisseur.telephone }}
Fax {{ fournisseur.fax }}
Patente {{ fournisseur.patente }}
ICE {{ fournisseur.ice }}
Retour {% if app.user.aDroit('achat_paiement') %} Balance {% endif %} {% if app.user.aDroit('fournisseur_modification') %} Modifier {% endif %} {% if app.user.aDroit('fournisseur_suppression') %} Supprimer {{ form_start(delete_form) }} {{ form_end(delete_form) }} {% endif %}
{{ form_start(delete_form) }} {{ form_end(delete_form) }}
{% if app.user.aDroit('achat_consultation') %}
Transactions
{% if vproduits %} {% set total_cmd, total_ca, total_paye = 0, 0, 0 %} {% for aproduit in vproduits %} {% set total_cmd = total_cmd + aproduit.nbr_ventes %} {% set total_ca = total_ca + aproduit.ca_ventes %} {% set total_paye = total_paye + aproduit.total_paye %} {% endfor %} {% endif %}
ANNEE NBR CMD. TOTAL TTC TOTAL PAYE RESTE
{{ aproduit.annee }} {{ aproduit.nbr_ventes }} {% if app.user.aDroit('achat_paiement') %} {{ aproduit.ca_ventes|number_format(2, '.', ' ') }} {% endif %} {% if app.user.aDroit('achat_paiement') %} {{ aproduit.total_paye|number_format(2, '.', ' ') }} {% endif %} {% if app.user.aDroit('achat_paiement') %} {{ (aproduit.ca_ventes - aproduit.total_paye)|number_format(2, '.', ' ') }} {% endif %}
TOTAL {{ total_cmd }} {% if app.user.aDroit('vente_paiement') %} {{ total_ca|number_format(2, '.', ' ') }} {% endif %} {% if app.user.aDroit('vente_paiement') %} {{ total_paye|number_format(2, '.', ' ') }} {% endif %} {% if app.user.aDroit('vente_paiement') %} {{ (total_ca - total_paye)|number_format(2, '.', ' ') }} {% endif %}
{% endif %} {% if app.user.aDroit('vente_paiement') %}
Prochains règlements
{% if app.user.aDroit('vente_paiement') %} {% endif %}
{% set total_upcoming = 0 %} {% for paiement in paiements %} {% set total_upcoming = total_upcoming + paiement.total_paye %} {% endfor %}
Dates Mode Montant Actions
{{ paiement.date_echeance|date('d-m-Y') }} / {{ paiement.date_paiement|date('d-m-Y') }} {% if paiement.achat_id %} {% endif %} {{ paiement.mode_paiement }} {% if paiement.est_paye %} {% else %} {% endif %} {{ paiement.total_paye|number_format(2, '.', ' ') }}
{% if app.user.aDroit('achat_paiement') %} {% endif %}
Total: {{ total_upcoming|number_format(2, '.', ' ') }}
{% endif %}
{% endblock %}