Sfoglia il codice sorgente

Processus de commandes

feature/export_comptable
Fab 4 anni fa
parent
commit
166fed5909
2 ha cambiato i file con 2 aggiunte e 7 eliminazioni
  1. +2
    -4
      ShopBundle/Controller/Backend/OrderController.php
  2. +0
    -3
      ShopBundle/Services/OrderUtils.php

+ 2
- 4
ShopBundle/Controller/Backend/OrderController.php Vedi File

@@ -170,8 +170,6 @@ class OrderController extends AdminController
if ($formOrderStatus->isSubmitted() && $formOrderStatus->isValid()) {

if($orderShop = $this->orderUtils->setOrderStatus($formOrderStatus->get('orderStatus')->getData(), $orderShop)){
$this->persistEntity($orderShop);
$this->em->flush();
$this->addFlash('success', 'La commande a bien été modifié.');
}
}else{
@@ -243,7 +241,7 @@ class OrderController extends AdminController
$this->em->persist($orderReductionCart);
$this->em->flush();

$response['status'] = 'success';
$response['message'] = 'La réduction a bien été ajouté';

@@ -472,4 +470,4 @@ class OrderController extends AdminController
]);
}

}
}

+ 0
- 3
ShopBundle/Services/OrderUtils.php Vedi File

@@ -121,9 +121,6 @@ class OrderUtils

$orderShop = $this->setOrderStatus('cart', $orderShop);

$this->em->persist($orderShop);
$this->em->flush();

return $orderShop;
}


Loading…
Annulla
Salva