From 0f3b33b501d6fd5a81e6411bd766da2c77f85aa7 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 6 Sep 2005 10:21:28 +0000 Subject: [PATCH] Bugfix --- htdocs/telephonie/client/facture.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/htdocs/telephonie/client/facture.php b/htdocs/telephonie/client/facture.php index bdb710249fd..d13d4fbd9af 100644 --- a/htdocs/telephonie/client/facture.php +++ b/htdocs/telephonie/client/facture.php @@ -33,15 +33,10 @@ require("./pre.inc.php"); $user->getrights('facture'); $user->getrights('banque'); -if (!$user->rights->facture->lire) -accessforbidden(); - $langs->load("bills"); - $warning_delay=31*24*60*60; // Delai affichage warning retard (si retard paiement facture > delai) - require_once DOL_DOCUMENT_ROOT."/facture.class.php"; require_once DOL_DOCUMENT_ROOT."/paiement.class.php"; require_once DOL_DOCUMENT_ROOT."/lib/CMailFile.class.php"; @@ -234,7 +229,6 @@ if ($_GET["facid"] > 0) print ''.$langs->trans("Date").''; print "".dolibarr_print_date($fac->date,"%A %d %B %Y")."\n"; print ''.$langs->trans("DateClosing").'' . dolibarr_print_date($fac->date_lim_reglement,"%A %d %B %Y"); - if ($fac->date_lim_reglement < (time() - $warning_delay) && ! $fac->paye && $fac->statut == 1 && ! $fac->am) print img_warning($langs->trans("Late")); print ""; print '';