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:
parent
fc0e391b67
commit
073afe501e
@ -123,11 +123,11 @@ print "<td align=\"center\">";
|
|||||||
|
|
||||||
if($conf->global->MAIN_SUBMODULE_EXPEDITION == 0)
|
if($conf->global->MAIN_SUBMODULE_EXPEDITION == 0)
|
||||||
{
|
{
|
||||||
print '<a href="produit.php?action=activate_sending">'.$langs->trans("Activate").'</a>';
|
print '<a href="confexped.php?action=activate_sending">'.$langs->trans("Activate").'</a>';
|
||||||
}
|
}
|
||||||
else if($conf->global->MAIN_SUBMODULE_EXPEDITION == 1)
|
else if($conf->global->MAIN_SUBMODULE_EXPEDITION == 1)
|
||||||
{
|
{
|
||||||
print '<a href="produit.php?action=disable_sending">'.$langs->trans("Disable").'</a>';
|
print '<a href="confexped.php?action=disable_sending">'.$langs->trans("Disable").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</td>";
|
print "</td>";
|
||||||
@ -158,11 +158,11 @@ print "<td align=\"center\">";
|
|||||||
|
|
||||||
if($conf->global->MAIN_SUBMODULE_LIVRAISON == 0)
|
if($conf->global->MAIN_SUBMODULE_LIVRAISON == 0)
|
||||||
{
|
{
|
||||||
print '<a href="produit.php?action=activate_delivery">'.$langs->trans("Activate").'</a>';
|
print '<a href="confexped.php?action=activate_delivery">'.$langs->trans("Activate").'</a>';
|
||||||
}
|
}
|
||||||
else if($conf->global->MAIN_SUBMODULE_LIVRAISON == 1)
|
else if($conf->global->MAIN_SUBMODULE_LIVRAISON == 1)
|
||||||
{
|
{
|
||||||
print '<a href="produit.php?action=disable_delivery">'.$langs->trans("Disable").'</a>';
|
print '<a href="confexped.php?action=disable_delivery">'.$langs->trans("Disable").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</td>";
|
print "</td>";
|
||||||
|
|||||||
@ -63,7 +63,7 @@ class modExpedition extends DolibarrModules
|
|||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
$this->config_page_url = "expedition.php";
|
$this->config_page_url = "confexped.php";
|
||||||
|
|
||||||
// Dépendances
|
// Dépendances
|
||||||
$this->depends = array("modCommande");
|
$this->depends = array("modCommande");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user