{% extends 'base.html.twig' %} {% block body %} {% set magasin_id = app.session.get('magasin') %}

Fiche client
{% if client.description %} {% endif %} {% if client.email %} {% endif %} {% if client.telephone %} {% endif %} {% if client.fax %} {% endif %} {% if client.patente %} {% endif %} {% if client.ice %} {% endif %} {% if(app.user.superAdmin) %} {% endif %}
Référence client {{ client.id }}
Raison sociale {{ client.raisonsociale }}
Description {{ client.description }}
Adresse {{ client.adresse }}
Email {{ client.email }}
Fixe {{ client.telephone }}
Fax {{ client.fax }}
Patente {{ client.patente }}
ICE {{ client.ice }}
Magasin {{ client.magasin }}
Retour {% if app.user.aDroit('vente_paiement') %} Balance {% endif %} {% if app.user.aDroit('client_modification') %} Modifier {% endif %} {% if app.user.aDroit('client_suppression') %} {{ form_start(delete_form) }} {{ form_end(delete_form) }} {% endif %}
{% if app.user.aDroit('client_modification') and app.user.aDroit('client_suppression') %}
Clients similaires

RSADRESSETELICE

{% endif %}
{% if app.user.aDroit('vente_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('vente_paiement') %} {{ aproduit.ca_ventes|number_format(2, '.', ' ') }} {% endif %} {% if app.user.aDroit('vente_paiement') %} {{ aproduit.total_paye|number_format(2, '.', ' ') }} {% endif %} {% if app.user.aDroit('vente_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') %}
Paiements
{% if app.user.aDroit('vente_paiement') %} {% endif %}
{% for paiement in client.getPaiements() %} {% endfor %}
Cmd. Date Mode Montant Actions
{% if paiement.vente %} {{ paiement.vente.numCommande }} {% endif %} {{ paiement.datePaiement|date('d-m-Y') }} {{ paiement.modePaiement }} {% if paiement.getEstPaye() %} {% else %} {% endif %} {{ paiement.totalPaye }}
{% if app.user.aDroit('vente_paiement') %} {% endif %}
{% endif %} {% if app.user.aDroit('vehicule_consultation') and client.getVehicules() %}
Vehicules
{% for vente in client.getVehicules() %} {% endfor %}
Chassis Marque/Modele Immatr. Actions
{{ vente.numChassis }} {{ vente.marque }} {{ vente.modele }} {{ vente.immatriculation }}
{% endif %} {% if app.user.aDroit('reparation_consultation') and client.getReparations() %}
Reparations
{% for vente in client.getReparations() %} {% if(magasin_id == vente.getMagasin().getId()) %} {% endif %} {% endfor %}
O.R. Date Vehicule Actions
{{ vente.numReparation }} {{ vente.dateReparation|date('d-m-Y') }} {{ vente.getVehicule().getImmatriculation() }}
{% endif %}
{% endblock %} {% block javascripts %} {% endblock %}