Skip to content
Snippets Groups Projects
Commit 269a59e1 authored by Maxime Kohlhaas's avatar Maxime Kohlhaas
Browse files

Fix : warning was not calculated on the right date

parent 6a615870
No related branches found
No related tags found
No related merge requests found
...@@ -334,7 +334,7 @@ if ($resql) ...@@ -334,7 +334,7 @@ if ($resql)
print '</td>'; print '</td>';
print '<td style="min-width: 20px" class="nobordernopadding nowrap">'; print '<td style="min-width: 20px" class="nobordernopadding nowrap">';
if (($objp->fk_statut > 0) && ($objp->fk_statut < 3) && max($db->jdate($objp->date_valid),$db->jdate($objp->date_livraison)) < ($now - $conf->commande->client->warning_delay)) if (($objp->fk_statut > 0) && ($objp->fk_statut < 3) && max($db->jdate($objp->date_commande),$db->jdate($objp->date_livraison)) < ($now - $conf->commande->client->warning_delay))
print img_picto($langs->trans("Late"),"warning"); print img_picto($langs->trans("Late"),"warning");
if(!empty($objp->note_private)) if(!empty($objp->note_private))
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment