Fix: [ bug #256 ] Delivery order SQL error
This commit is contained in:
parent
b5f1038ebb
commit
decf7e682f
@ -36,6 +36,7 @@ if (!$user->admin)
|
|||||||
|
|
||||||
$action=GETPOST("action");
|
$action=GETPOST("action");
|
||||||
|
|
||||||
|
// Shipment note
|
||||||
if ($action == 'activate_sending')
|
if ($action == 'activate_sending')
|
||||||
{
|
{
|
||||||
dolibarr_set_const($db, "MAIN_SUBMODULE_EXPEDITION", "1",'chaine',0,'',$conf->entity);
|
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");
|
Header("Location: confexped.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
// Delivery note
|
||||||
else if ($action == 'activate_delivery')
|
else if ($action == 'activate_delivery')
|
||||||
{
|
{
|
||||||
dolibarr_set_const($db, "MAIN_SUBMODULE_LIVRAISON", "1",'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_SUBMODULE_EXPEDITION", "1",'chaine',0,'',$conf->entity); // We must also enable this
|
||||||
Header("Location: confexped.php");
|
dolibarr_set_const($db, "MAIN_SUBMODULE_LIVRAISON", "1",'chaine',0,'',$conf->entity);
|
||||||
exit;
|
Header("Location: confexped.php");
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
else if ($action == 'disable_delivery')
|
else if ($action == 'disable_delivery')
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user