From 447930ae88641cba8bdad54f22d7d7c5a309b0c8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 28 Mar 2006 18:50:44 +0000 Subject: [PATCH] =?UTF-8?q?Utilisation=20du=20bon=20d=E9lai=20de=20warning?= =?UTF-8?q?=20retard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/boxes/box_factures_imp.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/includes/boxes/box_factures_imp.php b/htdocs/includes/boxes/box_factures_imp.php index ad90c16d274..e00967b3e02 100644 --- a/htdocs/includes/boxes/box_factures_imp.php +++ b/htdocs/includes/boxes/box_factures_imp.php @@ -62,8 +62,6 @@ class box_factures_imp extends ModeleBoxes { global $user, $langs, $db; $langs->load("boxes"); - $warning_delay=31*24*60*60; // Delai affichage warning retard (si retard paiement facture > delai) - $this->info_box_head = array('text' => $langs->trans("BoxTitleOldestUnpayedCustomerBills",$max)); if ($user->rights->facture->lire) @@ -94,7 +92,7 @@ class box_factures_imp extends ModeleBoxes { $objp = $db->fetch_object($result); $late=""; - if ($objp->datelimite < (time() - $warning_delay)) $late=img_warning($langs->trans("Late")); + if ($objp->datelimite < (time() - $conf->facture->fournisseur->warning_delay)) $late=img_warning($langs->trans("Late")); $this->info_box_contents[$i][0] = array('align' => 'left', 'logo' => $this->boximg,