diff --git a/htdocs/lib/invoice.lib.php b/htdocs/lib/invoice.lib.php index 04556933e2c..d2ed90a3883 100644 --- a/htdocs/lib/invoice.lib.php +++ b/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');