Merge pull request #32581 from francoisPE/fix_bg_fact_fourn
FIX pdf_cannelle (supplier_invoice) add background - Complete #17243
This commit is contained in:
commit
249dfe1bea
3 changed files with 15 additions and 3 deletions
|
|
@ -286,7 +286,11 @@ class pdf_standard_asset extends ModelePDFAsset
|
|||
|
||||
// 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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -275,7 +275,11 @@ class pdf_eagle_proforma extends ModelePDFCommandes
|
|||
$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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -250,7 +250,11 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
|
|||
$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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue