|
|
@@ -37,6 +37,7 @@ class OrderDocumentManager extends AbstractManager |
|
|
|
$firstOrder = $this->orderRepository->findOneOrderById((int)$idOrders[key($idOrders)]); |
|
|
|
$ordersArray = Order::searchAll(['id' => $idOrders,]); |
|
|
|
$deliveryNote = $this->deliveryNoteRepository->getOneDeliveryNoteExistingFromOrders($ordersArray); |
|
|
|
$deliveryNote = $this->deliveryNoteBuilder->deleteDeliveryNoteIfStatusDraft($deliveryNote); |
|
|
|
|
|
|
|
if ($deliveryNote && $this->documentSolver->isStatusValid($deliveryNote)) { |
|
|
|
throw new Exception("Vous ne pouvez pas modifier un bon de livraison déjà validé."); |