From 03b91054f12a5c7962952638d930d32251560f5b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 21 Jun 2004 20:04:59 +0000 Subject: [PATCH] =?UTF-8?q?Modif=20libell=E9=20titre=20des=20box=20facture?= =?UTF-8?q?s=20impay=E9es.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/boxes/box_factures_fourn_imp.php | 5 +++-- htdocs/includes/boxes/box_factures_imp.php | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/htdocs/includes/boxes/box_factures_fourn_imp.php b/htdocs/includes/boxes/box_factures_fourn_imp.php index a2a37169e25..40b58fdd02c 100644 --- a/htdocs/includes/boxes/box_factures_fourn_imp.php +++ b/htdocs/includes/boxes/box_factures_fourn_imp.php @@ -21,9 +21,10 @@ */ if ($user->rights->facture->lire) { - + $nbtoshow=5; + $info_box_head = array(); - $info_box_head[] = array('text' => "Factures fournisseurs impayées"); + $info_box_head[] = array('text' => "Les $nbtoshow plus anciennces factures fournisseurs impayées"); $info_box_contents = array(); diff --git a/htdocs/includes/boxes/box_factures_imp.php b/htdocs/includes/boxes/box_factures_imp.php index a8cf7e42549..68d8fa76f59 100644 --- a/htdocs/includes/boxes/box_factures_imp.php +++ b/htdocs/includes/boxes/box_factures_imp.php @@ -22,9 +22,10 @@ */ if ($user->rights->facture->lire) { - + $nbtoshow=5; + $info_box_head = array(); - $info_box_head[] = array('text' => "Factures clients impayées"); + $info_box_head[] = array('text' => "Les $nbtoshow plus anciennes factures clients impayées"); $info_box_contents = array(); @@ -35,7 +36,7 @@ if ($user->rights->facture->lire) $sql .= " AND s.idp = $user->societe_id"; } $sql .= " ORDER BY f.datef DESC, f.facnumber DESC "; - $sql .= $db->plimit(5, 0); + $sql .= $db->plimit($nbtoshow, 0); $result = $db->query($sql); if ($result)