Fix shipping is not a delivery_note (sub module of shipping)

This commit is contained in:
Francis Appels
2024-03-12 11:07:18 +01:00
parent 7869c1a309
commit 7ff68a5819
34 changed files with 59 additions and 59 deletions

View File

@@ -3825,7 +3825,7 @@ class Commande extends CommonOrder
$result = '';
if (isModEnabled("delivery_note") && ($option == '1' || $option == '2')) {
if (isModEnabled("shipping") && ($option == '1' || $option == '2')) {
$url = DOL_URL_ROOT.'/expedition/shipment.php?id='.$this->id;
} else {
$url = DOL_URL_ROOT.'/commande/card.php?id='.$this->id;