{% 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é Marge Disponibilité Quantité Total Actions
{% verbatim %}{{orderProduct.title}}{% endverbatim %} - - {% verbatim %}{{orderProduct.price}}{% endverbatim %}€ {% verbatim %}{{orderProduct.priceWithTax}}{% endverbatim %}€ {% verbatim %}{{orderProduct.totalMargin}}{% endverbatim %}€ / {% verbatim %}{{orderProduct.marginPercent}}{% 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') }}
{# #}
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}€
{##} {{ _self.order_modal_button('#modal-order-send-payment-link', 'btn-info float-right', "action.order.sendPaymentLink", 'credit-card') }}
{% endmacro %} {% macro box_user_info() %} {% import '@LcShop/backend/default/block/macros.html.twig' as macros %} {% set value = ' ' %} {{ macros.box_info('bg-info', 'user',"field.default.user"|trans({}, 'lcshop'), value) }} {% endmacro box_user_info %} {% macro box_reference() %} {% import '@LcShop/backend/default/block/macros.html.twig' as macros %} {{ macros.box_info('bg-info', 'credit-card',"field.OrderShop.reference"|trans({}, 'lcshop'), ' ${order.reference}') }} {% endmacro %} {% macro box_validation_date() %} {% import '@LcShop/backend/default/block/macros.html.twig' as macros %} {% set value = ' ${order.createdAt} ${order.createdAt}' %} {{ macros.box_info('bg-warning', 'calendar',"field.default.date"|trans({}, 'lcshop'), value) }} {% endmacro %} {% macro box_total_order() %} {% import '@LcShop/backend/default/block/macros.html.twig' as macros %} {{ macros.box_info('bg-danger', 'euro-sign',"field.OrderShop.total"|trans({}, 'lcshop'), ' ${order.totalWithTax} €') }} {% endmacro %} {% macro box_address_invoice() %} {% import '@LcShop/backend/default/block/macros.html.twig' as macros %} {% set value = '
Aucune adresse de facturation défini. ' %} {{ macros.box_info('bg-info', 'address-card',"field.default.invoiceAddress"|trans({}, 'lcshop'), value , _self.order_modal_button('#modal-order-invoice-address')) }} {% endmacro %} {% macro box_main_order() %} {% import '@LcShop/backend/default/block/macros.html.twig' as macros %} {% set value = '${order.mainOrder.reference} [Afficher]' %} {{ macros.box_info('bg-danger', 'link',"field.OrderShop.mainOrder"|trans({}, 'lcshop'), value) }} {% endmacro %} {% macro box_address_delivery() %} {% embed '@LcShop/backend/default/block/embed_box.twig' %} {% import '@LcShop/backend/order/macros.html.twig' as order_macros %} {% trans_default_domain 'lcshop' %} {% block class %}bg-success{% endblock %} {% block icon %}map-marked-alt{% endblock %} {% block label %}{{ "field.default.deliveryAddress"|trans({}, 'lcshop')}}{% endblock %} {% block value %}
Aucun lieu de livraison défini.
{% endblock %} {% block button %} {{ order_macros.order_modal_button('#modal-order-delivery-address') }} {% endblock %} {% endembed %} {% endmacro %} {% macro box_delivery_slot() %} {% embed '@LcShop/backend/default/block/embed_box.twig' %} {% import '@LcShop/backend/order/macros.html.twig' as order_macros %} {% trans_default_domain 'lcshop' %} {% block class %}bg-success{% endblock %} {% block icon %}clock{% endblock %} {% block label %}{{ "field.default.deliveryAvailabilty"|trans({}, 'lcshop') }}{% endblock %} {% block value %}
Aucun créneau défini.
{% endblock %} {% block button %} {{ order_macros.order_modal_button('#modal-order-delivery-availability') }} {% endblock %} {% endembed %} {% endmacro %} {% macro box_payments() %} {% import '@LcShop/backend/default/block/macros.html.twig' as macros %} {% set tools = '
Commande soldé
Commande non soldé
' %} {{ macros.card_start("OrderShop.payment", 'danger card-outline', false, tools) }}
Mode de règlement Date Montant Actions
{{ _self.order_modal_button('#modal-order-payment', 'btn-info', "action.order.addOrderPayment") }} Total règlement : ${order.totalOrderPaid} € {#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#}
{{ macros.card_end() }} {% endmacro %} {% macro box_documents() %} {% import '@LcShop/backend/default/block/macros.html.twig' as macros %} {{ macros.card_start("OrderShop.documents", 'primary card-outline') }}
Date Type Numéro Actions
{{ macros.card_end() }} {% endmacro %} {% macro box_complementary() %} {% import '@LcShop/backend/default/block/macros.html.twig' as macros %} {{ macros.card_start("OrderShop.complementary", 'primary card-outline') }}
Réference Date total Actions
{{ macros.card_end() }} {% endmacro %} {% macro box_tickets() %} {% import '@LcShop/backend/default/block/macros.html.twig' as macros %} {{ macros.card_start("OrderShop.tickets", 'primary card-outline') }}
Date Status Subject Actions
{{ macros.card_end() }} {% endmacro %} {% macro box_status() %} {% embed '@LcShop/backend/default/block/embed_box.twig' %} {% import '@LcShop/backend/order/macros.html.twig' as order_macros %} {% trans_default_domain 'lcshop' %} {% block class %}bg-success{% endblock %} {% block icon %}info{% endblock %} {% block label %}{{ "field.OrderShop.status"|trans({}, 'lcshop')}}{% endblock %} {% block value %} ${order.orderStatus} {% endblock %} {% block button %} {{ order_macros.order_modal_button('#modal-order-status') }} {% endblock %} {% endembed %} {% endmacro %} {% macro order_modal_button(modalId, class="btn-primary", trad="action.edit", icon=false) %} {% endmacro order_modal_button %}