match eldy adviced

This commit is contained in:
Hystepik 2023-06-14 10:10:55 +02:00
parent e28de18a9b
commit afbcaa6f91

View file

@ -151,7 +151,7 @@ class mod_project_simple extends ModeleNumRefProjects
//$yymm = strftime("%y%m",time());
//$yymm = strftime("%y%m", $date);
$yymm = date("%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