Utilisation du bon délai de warning retard
This commit is contained in:
parent
dab2beae1a
commit
447930ae88
@ -62,8 +62,6 @@ class box_factures_imp extends ModeleBoxes {
|
|||||||
global $user, $langs, $db;
|
global $user, $langs, $db;
|
||||||
$langs->load("boxes");
|
$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));
|
$this->info_box_head = array('text' => $langs->trans("BoxTitleOldestUnpayedCustomerBills",$max));
|
||||||
|
|
||||||
if ($user->rights->facture->lire)
|
if ($user->rights->facture->lire)
|
||||||
@ -94,7 +92,7 @@ class box_factures_imp extends ModeleBoxes {
|
|||||||
$objp = $db->fetch_object($result);
|
$objp = $db->fetch_object($result);
|
||||||
|
|
||||||
$late="";
|
$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',
|
$this->info_box_contents[$i][0] = array('align' => 'left',
|
||||||
'logo' => $this->boximg,
|
'logo' => $this->boximg,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user