Update mod_bom_standard.php

This commit is contained in:
Charlène Benke 2023-12-30 08:13:51 +01:00 committed by GitHub
parent de020ca4ab
commit 612062d7ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,7 +142,7 @@ class mod_bom_standard extends ModeleNumRefBoms
//$date=time();
$date = $object->date_creation;
$yymm = strftime("%y%m", $date);
$yymm = dol_print_date($date, "%y%m");
if ($max >= (pow(10, 4) - 1)) {
$num = $max + 1; // If counter > 9999, we do not format on 4 chars, we take number as it is