Browse Source

Show withdraw tab when module is enabled

Laurent Destailleur 15 years ago
parent
commit
53b95f75ff
1 changed files with 2 additions and 1 deletions
  1. 2 1
      htdocs/lib/invoice.lib.php

+ 2 - 1
htdocs/lib/invoice.lib.php

@@ -50,7 +50,8 @@ function facture_prepare_head($fac)
 		$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][1] = $langs->trans('StandingOrders');