Browse Source

[Administration] Distributions : possibilité de regénérer un BL pour un point de vente avec une commande supplémentaire #1372

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
eb0b4239ab
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      common/logic/Order/Order/Service/OrderDocumentManager.php

+ 1
- 0
common/logic/Order/Order/Service/OrderDocumentManager.php View File

@@ -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é.");

Loading…
Cancel
Save