Show withdraw tab when module is enabled

This commit is contained in:
Laurent Destailleur 2010-06-14 20:16:56 +00:00
parent a4d771aa1c
commit 53b95f75ff

View File

@ -50,7 +50,8 @@ function facture_prepare_head($fac)
$h++; $h++;
} }
if ($fac->mode_reglement_code == 'PRE') //if ($fac->mode_reglement_code == 'PRE')
if ($conf->prelevement->enabled)
{ {
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/prelevement.php?facid='.$fac->id; $head[$h][0] = DOL_URL_ROOT.'/compta/facture/prelevement.php?facid='.$fac->id;
$head[$h][1] = $langs->trans('StandingOrders'); $head[$h][1] = $langs->trans('StandingOrders');