From 61982bf42bbb646a29288bca0932452776b4daba Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Mon, 7 Apr 2025 14:11:37 +0200 Subject: [PATCH] Fix CI --- htdocs/core/modules/accountancy/mod_bookkeeping_argon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/modules/accountancy/mod_bookkeeping_argon.php b/htdocs/core/modules/accountancy/mod_bookkeeping_argon.php index 167c99d8549..07d30a90afc 100644 --- a/htdocs/core/modules/accountancy/mod_bookkeeping_argon.php +++ b/htdocs/core/modules/accountancy/mod_bookkeeping_argon.php @@ -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; }