Browse Source

Autoriser la commande par administrateur

feature/export_comptable
Fab 4 years ago
parent
commit
104348361c
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      ShopBundle/Controller/Backend/OrderController.php
  2. +1
    -0
      ShopBundle/Resources/views/backend/order/edit-cart.html.twig

+ 1
- 1
ShopBundle/Controller/Backend/OrderController.php View File

if ($formOrderStatus->isSubmitted() && $formOrderStatus->isValid()) { if ($formOrderStatus->isSubmitted() && $formOrderStatus->isValid()) {
$oldStatus = $orderShop->getOrderStatus(); $oldStatus = $orderShop->getOrderStatus();


$orderShop = $this->orderUtils->changeOrderStatus($formOrderStatus->get('orderStatus')->getData(), $orderShop);
$orderShop = $this->orderUtils->changeOrderStatus($formOrderStatus->get('orderStatus')->getData(), $orderShop, true);
if ($oldStatus !== $orderShop->getOrderStatus()) { if ($oldStatus !== $orderShop->getOrderStatus()) {
$this->utils->addFlash('success', 'success.order.changeStatus'); $this->utils->addFlash('success', 'success.order.changeStatus');
} }

+ 1
- 0
ShopBundle/Resources/views/backend/order/edit-cart.html.twig View File





{{ macros.startCard(12, 'OrderShop.resume') }} {{ macros.startCard(12, 'OrderShop.resume') }}

{% include '@LcShop/backend/order/form/card_orderproducts.html.twig' %} {% include '@LcShop/backend/order/form/card_orderproducts.html.twig' %}


{{ macros.cardOverlay('isLoading') }} {{ macros.cardOverlay('isLoading') }}

Loading…
Cancel
Save