Ver código fonte

Corrctif statuts de commande

feature/rotating_product
Guillaume Bourgeois 5 meses atrás
pai
commit
7f0cdb9b78
1 arquivos alterados com 3 adições e 1 exclusões
  1. +3
    -1
      domain/Order/Order/OrderManager.php

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

@@ -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(

Carregando…
Cancelar
Salvar