Merge pull request #22427 from bb2a/FIX---php-V8-get-number-doc-saphir

FIX - php V8 get number doc saphir
This commit is contained in:
Laurent Destailleur 2022-09-28 20:30:10 +02:00 committed by GitHub
commit abd294d885
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;
$date = empty($propal->date) ? dol_now() : $propal->date;
$numFinal = get_next_value($db, $mask, 'propal', 'ref', '', $objsoc, $date, 'next', false, null, $entity);