Update mod_propale_saphir.php

This commit is contained in:
Laurent Destailleur 2022-09-28 20:29:50 +02:00 committed by GitHub
parent ef662ef6e4
commit dd4d73fd69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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