This commit is contained in:
Laurent Destailleur 2022-06-22 18:12:36 +02:00
parent 8b06d68cc0
commit 8075a40bd9

View File

@ -125,7 +125,7 @@ class CommActionRapport
$outputlangs->loadLangs(array("main", "dict", "companies", "bills", "products"));
$dir = $conf->agenda->dir_temp."/";
$file = $dir."actions-".$this->month."-".$this->year.".pdf";
$file = $dir."actions-".sprintf("%02d", $this->month)."-".sprintf("%04d", $this->year).".pdf";
if (!file_exists($dir)) {
if (dol_mkdir($dir) < 0) {