Update mod_propale_saphir.php
This commit is contained in:
parent
ef662ef6e4
commit
dd4d73fd69
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user