Modif libellé titre des box factures impayées.

This commit is contained in:
Laurent Destailleur 2004-06-21 20:04:59 +00:00
parent 3f3982fb8d
commit 03b91054f1
2 changed files with 7 additions and 5 deletions

View File

@ -21,9 +21,10 @@
*/ */
if ($user->rights->facture->lire) if ($user->rights->facture->lire)
{ {
$nbtoshow=5;
$info_box_head = array(); $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(); $info_box_contents = array();

View File

@ -22,9 +22,10 @@
*/ */
if ($user->rights->facture->lire) if ($user->rights->facture->lire)
{ {
$nbtoshow=5;
$info_box_head = array(); $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(); $info_box_contents = array();
@ -35,7 +36,7 @@ if ($user->rights->facture->lire)
$sql .= " AND s.idp = $user->societe_id"; $sql .= " AND s.idp = $user->societe_id";
} }
$sql .= " ORDER BY f.datef DESC, f.facnumber DESC "; $sql .= " ORDER BY f.datef DESC, f.facnumber DESC ";
$sql .= $db->plimit(5, 0); $sql .= $db->plimit($nbtoshow, 0);
$result = $db->query($sql); $result = $db->query($sql);
if ($result) if ($result)