Explorar el Código

Corrctif statuts de commande

feature/rotating_product
Guillaume Bourgeois hace 5 meses
padre
commit
7f0cdb9b78
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      domain/Order/Order/OrderManager.php

+ 3
- 1
domain/Order/Order/OrderManager.php Ver fichero

@@ -51,7 +51,9 @@ class OrderManager extends AbstractService implements ManagerInterface
$orderStatus = $this->orderStatusRepository->getOrderStatusByAlias($orderStatusAlias);

$order->setOrderStatus($orderStatus);
$this->orderBuilder->initDateUpdate($order);
if(!$this->orderSolver->isOrderStatusOrdered($order)) {
$this->orderBuilder->initDateUpdate($order);
}
$this->orderBuilder->update($order);

$this->orderStatusHistoryManager->create(

Cargando…
Cancelar
Guardar