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

Fix: If end date is not defined, we can't say it is too late.

parent 9aacb0e7
Branches
Tags
No related merge requests found
...@@ -1378,7 +1378,7 @@ class FactureFournisseur extends CommonInvoice ...@@ -1378,7 +1378,7 @@ class FactureFournisseur extends CommonInvoice
while ($obj=$this->db->fetch_object($resql)) while ($obj=$this->db->fetch_object($resql))
{ {
$this->nbtodo++; $this->nbtodo++;
if ($this->db->jdate($obj->datefin) < ($now - $conf->facture->fournisseur->warning_delay)) $this->nbtodolate++; if (! empty($obj->datefin) && $this->db->jdate($obj->datefin) < ($now - $conf->facture->fournisseur->warning_delay)) $this->nbtodolate++;
} }
$this->db->free($resql); $this->db->free($resql);
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment