Rechercher historique de commande d'un client

Informations client

Merci de saisir un numero de telephone valide
{% if boollistcmd == true %} {% set boolbutton = 0 %} {% set nameclient = "Nous avons pas pu identifier le nom client" %} {% for commande in commandes %} {% if loop.first %} {% set nameclient = commande.nom %} {% if commande.livraison %} {% if (commande.livraison.statut ) =="Finalisé" or (commande.livraison.statut ) =="Cloturer" %} {% set boolbutton = 1 %} {% else %} {% set boolbutton = 0 %} {% endif %} {% else %} {% set boolbutton = 0 %} {% endif %} {% endif %} {% endfor %} {% set quant = 0 %} {% set montantreduc = 0 %} {% set montantpaiement = 0 %} {% set frais = 0 %} {% set prixtotal = 0 %} {% set totalcommande = 0 %} {% set totalcommandeeffecture = 0 %} {% set totalcommandeechec = 0 %} {% for commande in commandes %} {% set totalcommande = totalcommande+ commande|length %} {% set montantreduc = montantreduc+ commande.montantreduction %} {% set montantpaiement = montantpaiement+ commande.montantpaiementavance %} {% for produit in commande.produit %} {% set quant = quant+ produit.quantite %} {% set prixtotal = prixtotal+ produit.quantite * produit.lproduit.prixunitaire %} {% endfor %} {% endfor %} {% set quanteffectuer = 0 %} {% set montantreduc1 = 0 %} {% set montantpaiement1 = 0 %} {% set fraiseffectuer = 0 %} {% set prixtotaleffectuer = 0 %} {% for commande in commandes if (commande.typestatut.designation == "livraison effectuée" )%} {% set totalcommandeeffecture = totalcommandeeffecture+ commande|length %} {% set fraiseffectuer = fraiseffectuer+ commande.fraislivraison %} {% set montantreduc1 = montantreduc1 + commande.montantreduction %} {% set montantpaiement1 = montantpaiement1 + commande.montantpaiementavance %} {% for produit in commande.produit %} {% set quanteffectuer = quanteffectuer+ produit.quantite %} {% set prixtotaleffectuer = prixtotaleffectuer+ produit.quantite * produit.lproduit.prixunitaire %} {% endfor %} {% endfor %}
{% if totalcommande|trim >0 %}
le taux de commande reussi est {{ ((totalcommandeeffecture|trim /totalcommande|trim )*100 )|round(2, 'floor') }} %
{% if ((totalcommandeeffecture|trim /totalcommande|trim )*100 )|round(2, 'floor') < 25 |round(2, 'floor')%}
{% endif %} {% if ( ((totalcommandeeffecture|trim /totalcommande|trim )*100 )|round(2, 'floor') > 25 |round(2, 'floor') ) and ( ((totalcommandeeffecture|trim /totalcommande|trim )*100 )|round(2, 'floor') <75 |round(2, 'floor') ) %}
{% endif %} {% if ((totalcommandeeffecture|trim /totalcommande|trim )*100 )|round(2, 'floor') > 75 |round(2, 'floor')%}
{% endif %}
{% endif %}
{% for commande in commandes %} {% set refTva = 0 %} {% for produit in commande.produit %} {% set refTva = refTva+ produit.lproduit.prixunitaire %} {% endfor %} {# #} {% endfor %}
Info Article(s)
{{ commande.numerocommande }}
prix cmd
: {% for produit in commande.produit %} {{ ((produit.lproduit.prixunitaire * produit.quantite) - commande.montantreduction - commande.montantpaiementavance)|number_format(0, ',', ' ') }} {% endfor %} FCFA Statut: {{ commande.typestatut.designation }} Date de commande : {{ commande.datecommande|date('d-m-Y H:i') }}
{{ commande.adresseclientlivraison }}
{% if commande.reducbool.designation =="OUI" %} {% endif %} {% if commande.paiementbool.designation =="OUI" %} {% endif %} {% if commande.reducbool.designation =="OUI" %} {% endif %} {% if commande.paiementbool.designation =="OUI" %} {% endif %}
Designation Quantité. Sous Total.Reduction montant.Paiement par avance.
{% for produit in commande.produit %} {{produit.lproduit.designation}} /
{% endfor %}
{% for produit in commande.produit %}{{ produit.quantite }}
{% endfor %}
{% for produit in commande.produit %}{{ produit.lproduit.prixunitaire }}
{% endfor %}
{{ commande.montantreduction|number_format(0, ',', ' ') }} {{ commande.montantpaiementavance|number_format(0, ',', ' ') }}
{% else %} Ce client n'a jamais passer de commande EAS {% endif %}