Skip to content
Snippets Groups Projects
Commit 010964ad authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Warning always visible

parent 7f3c336b
No related branches found
No related tags found
No related merge requests found
......@@ -300,7 +300,7 @@ if ($resql)
$total_ht=0;
$total_ttc=0;
$total_paid=0;
$facturestatic=new Facture($db);
print '<form id="form_generate_pdf" method="POST" action="'.$_SERVER["PHP_SELF"].'?sortfield='. $sortfield .'&sortorder='. $sortorder .'">';
......@@ -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 '<td width="20" class="nobordernopadding" nowrap="nowrap">';
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 '</td>';
// PDF Picto
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment