{% if order is defined %} {% set currency = settings.get.currency|trans({},"admin") %}

{{settings.get.address}}

{% if order.customer %}

{{order.customer.firstName}} {{order.customer.lastName}}

{% else %}

{{order.firstName}} {{order.lastName}}

{% endif %}
Adresse {{order.address}}
Code postal {{order.postCode}}
Ville {{order.city}}
Tel {% if order.customer %} {{order.customer.phone}} {% else %} {{order.tel}} {% endif %}
{% if order.customer %} {% if order.customer.description %}
Note {{order.customer.description}}
{% endif %} {% endif %}
Num de {{order.orderType|trans({},"admin")}} {{order.orderNumber}}  | Date de commande {{order.createdAt|date('d/m/Y')}}
{% set totalCommission = 0 %} {% set totalOrder = 0 %} {% for singleOrderItem in order.orderItems %} {% endfor %} {% set reductionCoupon = 0 %} {% if order.coupon %} {% if order.coupon.typeReduction == "percent" %} {% set reductionCoupon = (order.totalAmount / 100) * order.coupon.valueReduction %} {% else %} {% set reductionCoupon = order.coupon.valueReduction %} {% endif %} {% endif %} {% set totalToPay = (order.totalAmount + order.shippingFees + order.shippingTips) - reductionCoupon - order.reductionOnTotal + (order.getAmountPayedByCredit) %} {% if order.payedAmount > 0 %} {% endif %} {% if (order.payedAmount + order.getAmountEarnedAsCredit ) < totalToPay %} {% endif %} {% if order.getTotalReduction > 0 %} {% endif %} {% if order.reduction and order.reduction > 0 %} {% endif %} {% if order.getAmountPayedByCredit and order.getAmountPayedByCredit != 0 %} {% endif %} {% if order.getAmountEarnedAsCredit and order.getAmountEarnedAsCredit != 0 %} {% endif %} {% if reductionCoupon > 0 %} {% endif %} {% if order.shippingTips > 0 %} {% endif %} {% if order.shippingFees > 0 %} {% endif %} {# #}
Produit Service Prix Reduction Quantity TOTAL
{{singleOrderItem.description}}

{% if singleOrderItem.product %} {% for categorie in singleOrderItem.product.categoriesProduct %} {{categorie}}, {% endfor %} {% elseif singleOrderItem.packEngagement %} {{ singleOrderItem.packEngagement.pack.title }} {% endif %}

{% if singleOrderItem.product %} {{singleOrderItem.product.price }} {{currency}} {% elseif singleOrderItem.packEngagement %} {{ singleOrderItem.packEngagement.pack.price }} {{currency}} {% else %} {{singleOrderItem.price|number_format(2, ',', ' ')}} {{currency}} {% endif %} {% if singleOrderItem.reduction > 0 %} {{singleOrderItem.reduction }} {{currency}} {% elseif singleOrderItem.product %} {% if singleOrderItem.product.reduction > 0 %} {{singleOrderItem.product.reduction}} {{currency}} {% else %} 0 {{currency}} {% endif %} {% else %} 0 {{currency}} {% endif %} {{singleOrderItem.quantity}} {% set totalOrder = totalOrder + (singleOrderItem.price * singleOrderItem.quantity) %} {{(singleOrderItem.price * singleOrderItem.quantity)|number_format(2, ',', ' ') }} {{currency}}
Sous Total {{order.totalAmount}} {{currency}}
Montant payé {{order.payedAmount}} {{currency}}
Montant restant {{ totalToPay - order.payedAmount }} {{currency}}
Total Reduction sur produits {{order.getTotalReduction}} {{currency}}
Remise sur la commande ({{order.reduction}}%) {{order.reductionOnTotal}} {{currency}}
paiement par credit {{settings.get.projectName}} {{order.getAmountPayedByCredit|abs}} {{currency}}
Montant ajouté au wallet client {{order.getAmountEarnedAsCredit|abs}} {{currency}}
Code Coupon utilisé ({{order.coupon.code }}) {{reductionCoupon|abs}} {{currency}}
Pourboire pour le livreur {{ order.shippingTips }} {{currency}}
Frais de livraison {{ order.shippingFees }} {{currency}}
Montant Total {{ totalToPay }} {{currency}}{{order.totalAmount + order.ldryOrder.deliveryPrice}} {{currency}}
INFOS:
{% if order.comment %}

Note sur la commande: {{order.comment}}

{% endif %} {% if order.shippingMethod %} {% if order.shippingMethod.isIsSeparatelyCalculated %}

Mode livraison : {{order.shippingMethod}}

{% endif %} {% endif %} {% if order.paymentMethod %}

Mode Paiement : {{order.paymentMethod }}

{% endif %} {% if order.agent %}

Livreur : {{order.agent.firstName}} {{order.agent.lastName}}

{% endif %} {% if order.shippingMethod %} {% set shippingDurationInMinutes = order.shippingMethod.shippingDuration * 60 %} {% if order.shippingMethod.isIsSeparatelyCalculated %}

Date collecte : {{order.startProcessingAt|date("Y-m-d H:i")}} - {{order.startProcessingAt|date_modify("+ "~shippingDurationInMinutes~" minutes")|date("H:i")}}

Date livraison : {{order.startDeliveryAt|date("Y-m-d H:i")}} - {{order.startDeliveryAt|date_modify("+ "~shippingDurationInMinutes~" minutes")|date("H:i")}}

{% endif %} {% endif %} {% if order.description %} Informations utiles
{{order.description}}
{% endif %}
{% endif %}