diff --git a/htdocs/admin/confexped.php b/htdocs/admin/confexped.php index a9088a2b976..24c505a27ef 100644 --- a/htdocs/admin/confexped.php +++ b/htdocs/admin/confexped.php @@ -36,6 +36,7 @@ if (!$user->admin) $action=GETPOST("action"); +// Shipment note if ($action == 'activate_sending') { dolibarr_set_const($db, "MAIN_SUBMODULE_EXPEDITION", "1",'chaine',0,'',$conf->entity); @@ -48,11 +49,13 @@ else if ($action == 'disable_sending') Header("Location: confexped.php"); exit; } +// Delivery note else if ($action == 'activate_delivery') { - dolibarr_set_const($db, "MAIN_SUBMODULE_LIVRAISON", "1",'chaine',0,'',$conf->entity); - Header("Location: confexped.php"); - exit; + dolibarr_set_const($db, "MAIN_SUBMODULE_EXPEDITION", "1",'chaine',0,'',$conf->entity); // We must also enable this + dolibarr_set_const($db, "MAIN_SUBMODULE_LIVRAISON", "1",'chaine',0,'',$conf->entity); + Header("Location: confexped.php"); + exit; } else if ($action == 'disable_delivery') {