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

Fix: Overwrite bad value of limit payment date only if payment date is

defined.
parent 76e4ba06
No related branches found
No related tags found
No related merge requests found
......@@ -221,7 +221,7 @@ elseif ($action == 'setdatef' && $user->rights->fournisseur->facture->creer)
{
$object->fetch($id);
$object->date=dol_mktime(12,0,0,$_POST['datefmonth'],$_POST['datefday'],$_POST['datefyear']);
if ($object->date_echeance < $object->date) $object->date_echeance=$object->date;
if ($object->date_echeance && $object->date_echeance < $object->date) $object->date_echeance=$object->date;
$result=$object->update($user);
if ($result < 0) dol_print_error($db,$object->error);
}
......
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