This commit is contained in:
Anthony Berton 2022-09-28 09:25:22 +02:00
parent 313addec74
commit ef662ef6e4

View File

@ -144,7 +144,7 @@ class mod_propale_saphir extends ModeleNumRefPropales
// Get entities
$entity = getEntity('proposalnumber', 1, $propal);
$date = isset($propal->date)?$propal->date:dol_now();
$date = $propal->date ?? dol_now();
$numFinal = get_next_value($db, $mask, 'propal', 'ref', '', $objsoc, $date, 'next', false, null, $entity);