Browse Source

Corrctif statuts de commande

feature/rotating_product
Guillaume Bourgeois 6 months ago
parent
commit
7f0cdb9b78
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      domain/Order/Order/OrderManager.php

+ 3
- 1
domain/Order/Order/OrderManager.php View File

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

Loading…
Cancel
Save