Skip to content

Commit

Permalink
Fix: Warning always visible
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 3, 2011
1 parent 5658328 commit 3de10b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/compta/facture/impayees.php
Expand Up @@ -326,6 +326,7 @@
while ($i < $num)
{
$objp = $db->fetch_object($result);
$date_limit=$db->jdate($objp->datelimite);

$var=!$var;

Expand All @@ -347,7 +348,7 @@

// 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
Expand Down

0 comments on commit 3de10b9

Please sign in to comment.