FIX - php V8 get number doc saphir

This commit is contained in:
Anthony Berton
2022-09-27 09:21:28 +02:00
parent 8864285496
commit 313addec74

View File

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