{% trans_default_domain 'lcshop' %} {% macro tableHead() %} {% endmacro %} {% macro products() %} {% endmacro %} {% macro productsTemplate(form_order_products=null) %} {% endmacro %} {% macro tableTotal() %}
Produits / Producteurs Prix HT à l'unité Prix TTC à l'unité Disponibilité Quantité Total
{% verbatim %}{{orderProduct.title}}{% endverbatim %} {% verbatim %}{{orderProduct.price}}{% endverbatim %}€ {% verbatim %}{{orderProduct.priceWithTax}}{% endverbatim %}€ {% verbatim %}{{orderProduct.availableQuantity}}{% endverbatim %} {% if form_order_products is not null %}
{{ form_widget(form_order_products.orderProducts.vars.prototype.quantityOrder, {'attr' : {'ref': 'fieldQuantity', 'v-model' : 'orderProduct.quantityOrder', '@change' : 'updateOrderProducts'}}) }} {{ form_widget(form_order_products.orderProducts.vars.prototype.product, {'attr' : {'ref' : 'fieldProduct', 'v-model' : 'orderProduct.product'}}) }} {#{{ form_widget(form_order_products.orderProducts.vars.prototype.id, {'attr' : {'ref' : 'fieldId', 'v-model' : 'orderProduct.id'}}) }}#}
{% verbatim %}{{ orderProduct.quantityOrder }}{% endverbatim %}
{% else %} {% verbatim %}{{ orderProduct.quantityOrder }}{% endverbatim %} {% endif %}
{% verbatim %}{{orderProduct.totalWithTaxAndReduction}}{% endverbatim %}€
{{ _self.order_modal_button('#modal-add-product-to-order', 'btn-success', "action.order.addOrderProduct", 'plus') }} {{ _self.order_modal_button('#modal-add-reduction-cart', 'btn-warning', "action.order.addReductionCart", 'shopping-basket') }} {{ _self.order_modal_button('#modal-add-reduction-credit', 'btn-warning', "action.order.addReductionCredit", 'backspace') }}
Historiques des transactions
{#TODO: afficher si la commande est règlé et afficher une alerte si le montant des paiments est supérieur au montant total de la commande#}
Mode de règlement Date Montant Actions
{{ _self.order_modal_button('#modal-order-payment', 'btn-info', "action.order.addOrderPayment") }}
Commande soldé
Commande non soldé
Total : ${order.totalOrderPaid}
{# #}
Total produits TTC ${order.totalOrderProductsWithTax}€
Total produits après réductions TTC ${order.totalOrderProductsWithTaxAndReductions}€
Frais de livraisons TTC ${order.deliveryPriceWithTaxAndReduction}€
Total Taxes ${order.totalWithTax}€
Total TTC ${order.totalWithTax}€
{% endmacro %} {% macro mainInfo() %} {#${order.id}#}
{{ "field.default.user"|trans({}, 'lcshop') }}
{{ "field.default.date"|trans({}, 'lcshop') }} ${order.createdAt} ${order.createdAt}
{{ "field.OrderShop.total"|trans({}, 'lcshop') }} ${order.totalWithTax} €
{{ "field.OrderShop.status"|trans({}, 'lcshop') }} ${order.orderStatus} {{ _self.order_modal_button('#modal-order-status') }}
{#
{{ "field.OrderShop.status"|trans }}
${order.orderStatus}
#} {% endmacro mainInfo %} {% macro addressInfo() %}
{{ "field.default.invoiceAddress"|trans({}, 'lcshop') }}
{{ _self.order_modal_button('#modal-order-invoice-address') }}
{{ "field.default.deliveryAddress"|trans({}, 'lcshop') }}
{{ "field.default.deliveryPointSale"|trans({}, 'lcshop') }} :
Aucun lieu de livraison défini.
{{ _self.order_modal_button('#modal-order-delivery-address') }}
{{ "field.default.deliveryAvailabilty"|trans({}, 'lcshop') }} :
{{ _self.order_modal_button('#modal-order-delivery-availability') }}
{% endmacro addressInfo %} {% macro order_modal_button(modalId, class="btn-default", trad="action.edit", icon=false) %} {% endmacro order_modal_button %}