This commit is contained in:
ldestailleur 2025-04-07 14:11:37 +02:00
parent a8d3fd8db2
commit 61982bf42b

View file

@ -125,7 +125,7 @@ class mod_bookkeeping_argon extends ModeleNumRefBookkeeping
// Get entities
//$entity = getEntity('invoicenumber', 1, $object);
$entity = $conf->entity; // In accountancy, we never share entities
$numFinal = get_next_value($db, $mask, 'accounting_bookkeeping', 'ref', $where, null, (empty($object) ? dol_now() : $object->doc_date), $mode, false, null, (string) $entity, $object);
$numFinal = get_next_value($db, $mask, 'accounting_bookkeeping', 'ref', $where, null, $object->doc_date, $mode, false, null, (string) $entity, $object);
if (!preg_match('/([0-9])+/', $numFinal)) {
$this->error = $numFinal;
}