{% trans_default_domain 'lcshop' %} {% macro tableHead() %} {% endmacro %} {% macro products() %} {% endmacro %} {% macro productsTemplate(form_order_products=null) %} {% endmacro %} {% macro tableTotal() %}
Produits / Producteurs Compléments Prix achat HT Prix HT Prix TTC Marge Disponibilité Quantité Total Actions
{% verbatim %}{{orderProduct.title}}{% endverbatim %} - - {% verbatim %}{{orderProduct.complementaryReference}}{% endverbatim %} {% verbatim %}{{orderProduct.buyingPrice}}{% 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-order-reduction-cart', 'btn-warning', "action.order.addReductionCart", 'shopping-basket') }} {{ _self.order_modal_button('#modal-add-order-reduction-credit', 'btn-warning', "action.order.addReductionCredit", 'backspace') }}
Total produits TTC ${order.totalOrderProductsWithTax} €
Total produits après réductions TTC ${order.totalOrderProductsWithTaxAndReductions} €
Total marge produits ${order.totalMargin} €
${order.totalMarginPercent} %
Frais de livraisons TTC ${order.deliveryPriceWithTaxAndReduction} €
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_reference() %} {% 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-info{% endblock %} {% block icon %}credit-card{% endblock %} {% block label %}{{ "field.OrderShop.reference"|trans({}, 'lcshop') }}{% endblock %} {% block value %} ${order.reference}
${order.countComplementaryOrderShops} commande(s) complémentaire(s) {% endblock %} {% endembed %} {% 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() %} {% 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-danger{% endblock %} {% block icon %}euro-sign{% endblock %} {% block infoBox %}
Total produits TTC : ${order.totalOrderProductsWithTaxAndReductions} €
Total marge produits : ${order.totalMargin} € / ${order.totalMarginPercent} %
Frais de livraisons TTC : ${order.deliveryPriceWithTaxAndReduction} €
Total commandes : ${order.totalWithTax} €
{% endblock %} {% endembed %} {% 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_step_reach() %} {% 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-info{% endblock %} {% block icon %}list-ol{% endblock %} {% block label %}Étape atteinte{% endblock %} {% block value %}
Adresse de livraison
Adresse de facturation
Page de paiement
Aucune
{% 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) }}
Référence 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') }}
Référence 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", 'warning 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-histories', 'btn-secondary', 'action.history') }} {{ 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 %}