Merge pull request #1806 from atm-maxime/3.5
Fix : warning was not calculated on the right date
This commit is contained in:
commit
8fe2f21c28
@ -334,7 +334,7 @@ if ($resql)
|
||||
print '</td>';
|
||||
|
||||
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");
|
||||
if(!empty($objp->note_private))
|
||||
{
|
||||
|
||||
@ -172,11 +172,11 @@ if (strlen($search_phone))
|
||||
}
|
||||
if (strlen($search_phoneper))
|
||||
{
|
||||
$sql .= " AND p.phone LIKE '%".$db->escape($search_phoneper)."%'";
|
||||
$sql .= " AND p.phone_perso LIKE '%".$db->escape($search_phoneper)."%'";
|
||||
}
|
||||
if (strlen($search_phonepro))
|
||||
{
|
||||
$sql .= " AND p.phone_perso LIKE '%".$db->escape($search_phonepro)."%'";
|
||||
$sql .= " AND p.phone LIKE '%".$db->escape($search_phonepro)."%'";
|
||||
}
|
||||
if (strlen($search_phonemob))
|
||||
{
|
||||
|
||||
@ -399,7 +399,7 @@ if (empty($action))
|
||||
{
|
||||
$sql .= ' AND p.rowid='.$db->escape($search_ref);
|
||||
}
|
||||
if (! empty($search_account))
|
||||
if (! empty($search_account) && $search_account > 0)
|
||||
{
|
||||
$sql .= ' AND b.fk_account='.$db->escape($search_account);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user