diff --git a/htdocs/compta/facture/impayees.php b/htdocs/compta/facture/impayees.php index 0ae8128b4bf..027afc2c1e4 100644 --- a/htdocs/compta/facture/impayees.php +++ b/htdocs/compta/facture/impayees.php @@ -300,7 +300,7 @@ if ($resql) $total_ht=0; $total_ttc=0; $total_paid=0; - + $facturestatic=new Facture($db); print '
'; @@ -309,6 +309,7 @@ if ($resql) while ($i < $num) { $objp = $db->fetch_object($resql); + $date_limit=$db->jdate($objp->datelimite); $var=!$var; @@ -330,7 +331,7 @@ if ($resql) // Warning picto print ''; - if ($objp->datelimite < ($now - $conf->facture->client->warning_delay) && ! $objp->paye && $objp->fk_statut == 1) print img_warning($langs->trans("Late")); + if ($date_limit < ($now - $conf->facture->client->warning_delay) && ! $objp->paye && $objp->fk_statut == 1) print img_warning($langs->trans("Late")); print ''; // PDF Picto