Commit a024b4d5 authored by Eric Seigne's avatar Eric Seigne
Browse files

cdefrais export ok

parent 960e2475
......@@ -58,19 +58,18 @@ class CdeFrais extends Model
$this->_ladate = $ladate;
$this->_entrepriseSlug = Str::slug($e->name) . "-" . Str::slug($e->siren);
$this->_entreprise = $e->name;
$this->_directory = "/" . storage_path() . "/CdeFrais/" . $this->_entrepriseSlug . "/" . $ladateYMD . "/";
if (!is_dir($this->_directory)) {
mkdir($this->_directory, 0770, true);
}
$this->_directory = "/" . storage_path() . "/CdeFrais/" . $this->_entrepriseSlug . "/" . $ladateYMD;
if ($suffixe != "") {
$suffixe = "-" . $suffixe;
$this->_directory .= $suffixe;
}
$this->_extensionZIP = ".zip";
$this->_filenameZIP = $ladateYMD . "-doliscan_export-" . $this->_entrepriseSlug . "-CDF" . $suffixe . $this->_extensionZIP;
Log::debug("CdeFrais::__construct : " . $this->_filenameZIP);
if (!is_dir($this->_directory)) {
mkdir($this->_directory, 0770, true);
}
Log::debug("Export des CDF dans " . $this->_directory);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment