Ajout possibilité de activer/désactiver les expéditions et les bon de livraison, renommage de MAIN_MODULE_EXPEDITION en MAIN_SUBMODULE_EXPEDITION

This commit is contained in:
Regis Houssin 2006-05-15 12:54:36 +00:00
parent 073afe501e
commit 8d9dc92c4b

View File

@ -40,25 +40,25 @@ if (!$user->admin)
if ($_POST["action"] == 'activate_sending') if ($_POST["action"] == 'activate_sending')
{ {
dolibarr_set_const($db, "MAIN_SUBMODULE_EXPEDITION", $_POST["value"]); dolibarr_set_const($db, "MAIN_SUBMODULE_EXPEDITION", $_POST["value"]);
Header("Location: produit.php"); Header("Location: confexped.php");
exit; exit;
} }
else if ($_GET["action"] == 'disable_sending') else if ($_GET["action"] == 'disable_sending')
{ {
dolibarr_del_const($db, "MAIN_SUBMODULE_EXPEDITION"); dolibarr_del_const($db, "MAIN_SUBMODULE_EXPEDITION");
Header("Location: produit.php"); Header("Location: confexped.php");
exit; exit;
} }
else if ($_GET["action"] == 'activate_delivery') else if ($_GET["action"] == 'activate_delivery')
{ {
dolibarr_set_const($db, "MAIN_SUBMODULE_LIVRAISON", "1"); dolibarr_set_const($db, "MAIN_SUBMODULE_LIVRAISON", "1");
Header("Location: produit.php"); Header("Location: confexped.php");
exit; exit;
} }
else if ($_GET["action"] == 'disable_delivery') else if ($_GET["action"] == 'disable_delivery')
{ {
dolibarr_del_const($db, "MAIN_SUBMODULE_LIVRAISON"); dolibarr_del_const($db, "MAIN_SUBMODULE_LIVRAISON");
Header("Location: produit.php"); Header("Location: confexped.php");
exit; exit;
} }