Merge pull request #20375 from atm-john/14.0_fix_crabe_multientity
FIX crabe multidir output
This commit is contained in:
commit
57ad3a789b
@ -290,11 +290,11 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
|
|
||||||
// Definition of $dir and $file
|
// Definition of $dir and $file
|
||||||
if ($object->specimen) {
|
if ($object->specimen) {
|
||||||
$dir = $conf->facture->dir_output;
|
$dir = $conf->facture->multidir_output[$conf->entity];
|
||||||
$file = $dir."/SPECIMEN.pdf";
|
$file = $dir."/SPECIMEN.pdf";
|
||||||
} else {
|
} else {
|
||||||
$objectref = dol_sanitizeFileName($object->ref);
|
$objectref = dol_sanitizeFileName($object->ref);
|
||||||
$dir = $conf->facture->dir_output."/".$objectref;
|
$dir = $conf->facture->multidir_output[$object->entity]."/".$objectref;
|
||||||
$file = $dir."/".$objectref.".pdf";
|
$file = $dir."/".$objectref.".pdf";
|
||||||
}
|
}
|
||||||
if (!file_exists($dir)) {
|
if (!file_exists($dir)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user