Skip to content

Commit

Permalink
FIX Continue for eagle_proforma
Browse files Browse the repository at this point in the history
  • Loading branch information
Amael-PE committed Jan 8, 2025
1 parent ea94370 commit 21e997a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ public function write_file($object, $outputlangs, $srctemplatepath = '', $hidede
$pdf->SetFont(pdf_getPDFFont($outputlangs));
// Set path to the background PDF File
if (getDolGlobalString('MAIN_ADD_PDF_BACKGROUND')) {
$pagecount = $pdf->setSourceFile($conf->mycompany->multidir_output[$object->entity].'/' . getDolGlobalString('MAIN_ADD_PDF_BACKGROUND'));
$logodir = $conf->mycompany->dir_output;
if (!empty($conf->mycompany->multidir_output[$object->entity])) {
$logodir = $conf->mycompany->multidir_output[$object->entity];
}
$pagecount = $pdf->setSourceFile($logodir .'/' . getDolGlobalString('MAIN_ADD_PDF_BACKGROUND'));
$tplidx = $pdf->importPage(1);
}

Expand Down

0 comments on commit 21e997a

Please sign in to comment.