NEW Add option PDF_DISABLE_MYCOMPANY_LOGO to disable logo on PDF
This commit is contained in:
parent
2816bdf747
commit
f65df9e541
@ -1261,6 +1261,8 @@ class pdf_einstein extends ModelePDFCommandes
|
|||||||
$pdf->SetXY($this->marge_gauche,$posy);
|
$pdf->SetXY($this->marge_gauche,$posy);
|
||||||
|
|
||||||
// Logo
|
// Logo
|
||||||
|
if (empty($conf->global->PDF_DISABLE_MYCOMPANY_LOGO))
|
||||||
|
{
|
||||||
$logo=$conf->mycompany->dir_output.'/logos/'.$this->emetteur->logo;
|
$logo=$conf->mycompany->dir_output.'/logos/'.$this->emetteur->logo;
|
||||||
if ($this->emetteur->logo)
|
if ($this->emetteur->logo)
|
||||||
{
|
{
|
||||||
@ -1282,6 +1284,7 @@ class pdf_einstein extends ModelePDFCommandes
|
|||||||
$text=$this->emetteur->name;
|
$text=$this->emetteur->name;
|
||||||
$pdf->MultiCell(100, 4, $outputlangs->convToOutputCharset($text), 0, 'L');
|
$pdf->MultiCell(100, 4, $outputlangs->convToOutputCharset($text), 0, 'L');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$pdf->SetFont('','B', $default_font_size + 3);
|
$pdf->SetFont('','B', $default_font_size + 3);
|
||||||
$pdf->SetXY($posx,$posy);
|
$pdf->SetXY($posx,$posy);
|
||||||
|
|||||||
@ -1281,6 +1281,8 @@ class pdf_eratosthene extends ModelePDFCommandes
|
|||||||
$pdf->SetXY($this->marge_gauche,$posy);
|
$pdf->SetXY($this->marge_gauche,$posy);
|
||||||
|
|
||||||
// Logo
|
// Logo
|
||||||
|
if (empty($conf->global->PDF_DISABLE_MYCOMPANY_LOGO))
|
||||||
|
{
|
||||||
$logo=$conf->mycompany->dir_output.'/logos/'.$this->emetteur->logo;
|
$logo=$conf->mycompany->dir_output.'/logos/'.$this->emetteur->logo;
|
||||||
if ($this->emetteur->logo)
|
if ($this->emetteur->logo)
|
||||||
{
|
{
|
||||||
@ -1302,6 +1304,7 @@ class pdf_eratosthene extends ModelePDFCommandes
|
|||||||
$text=$this->emetteur->name;
|
$text=$this->emetteur->name;
|
||||||
$pdf->MultiCell(100, 4, $outputlangs->convToOutputCharset($text), 0, 'L');
|
$pdf->MultiCell(100, 4, $outputlangs->convToOutputCharset($text), 0, 'L');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$pdf->SetFont('','B', $default_font_size + 3);
|
$pdf->SetFont('','B', $default_font_size + 3);
|
||||||
$pdf->SetXY($posx,$posy);
|
$pdf->SetXY($posx,$posy);
|
||||||
|
|||||||
@ -1598,6 +1598,8 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$pdf->SetXY($this->marge_gauche,$posy);
|
$pdf->SetXY($this->marge_gauche,$posy);
|
||||||
|
|
||||||
// Logo
|
// Logo
|
||||||
|
if (empty($conf->global->PDF_DISABLE_MYCOMPANY_LOGO))
|
||||||
|
{
|
||||||
$logo=$conf->mycompany->dir_output.'/logos/'.$this->emetteur->logo;
|
$logo=$conf->mycompany->dir_output.'/logos/'.$this->emetteur->logo;
|
||||||
if ($this->emetteur->logo)
|
if ($this->emetteur->logo)
|
||||||
{
|
{
|
||||||
@ -1619,6 +1621,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$text=$this->emetteur->name;
|
$text=$this->emetteur->name;
|
||||||
$pdf->MultiCell($w, 4, $outputlangs->convToOutputCharset($text), 0, 'L');
|
$pdf->MultiCell($w, 4, $outputlangs->convToOutputCharset($text), 0, 'L');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$pdf->SetFont('','B', $default_font_size + 3);
|
$pdf->SetFont('','B', $default_font_size + 3);
|
||||||
$pdf->SetXY($posx,$posy);
|
$pdf->SetXY($posx,$posy);
|
||||||
|
|||||||
@ -1573,6 +1573,8 @@ class pdf_sponge extends ModelePDFFactures
|
|||||||
$pdf->SetXY($this->marge_gauche,$posy);
|
$pdf->SetXY($this->marge_gauche,$posy);
|
||||||
|
|
||||||
// Logo
|
// Logo
|
||||||
|
if (empty($conf->global->PDF_DISABLE_MYCOMPANY_LOGO))
|
||||||
|
{
|
||||||
$logo=$conf->mycompany->dir_output.'/logos/'.$this->emetteur->logo;
|
$logo=$conf->mycompany->dir_output.'/logos/'.$this->emetteur->logo;
|
||||||
if ($this->emetteur->logo)
|
if ($this->emetteur->logo)
|
||||||
{
|
{
|
||||||
@ -1594,6 +1596,7 @@ class pdf_sponge extends ModelePDFFactures
|
|||||||
$text=$this->emetteur->name;
|
$text=$this->emetteur->name;
|
||||||
$pdf->MultiCell($w, 4, $outputlangs->convToOutputCharset($text), 0, 'L');
|
$pdf->MultiCell($w, 4, $outputlangs->convToOutputCharset($text), 0, 'L');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$pdf->SetFont('','B', $default_font_size + 3);
|
$pdf->SetFont('','B', $default_font_size + 3);
|
||||||
$pdf->SetXY($posx,$posy);
|
$pdf->SetXY($posx,$posy);
|
||||||
|
|||||||
@ -1463,6 +1463,8 @@ class pdf_azur extends ModelePDFPropales
|
|||||||
$pdf->SetXY($this->marge_gauche,$posy);
|
$pdf->SetXY($this->marge_gauche,$posy);
|
||||||
|
|
||||||
// Logo
|
// Logo
|
||||||
|
if (empty($conf->global->PDF_DISABLE_MYCOMPANY_LOGO))
|
||||||
|
{
|
||||||
$logo=$conf->mycompany->dir_output.'/logos/'.$this->emetteur->logo;
|
$logo=$conf->mycompany->dir_output.'/logos/'.$this->emetteur->logo;
|
||||||
if ($this->emetteur->logo)
|
if ($this->emetteur->logo)
|
||||||
{
|
{
|
||||||
@ -1484,6 +1486,7 @@ class pdf_azur extends ModelePDFPropales
|
|||||||
$text=$this->emetteur->name;
|
$text=$this->emetteur->name;
|
||||||
$pdf->MultiCell(100, 4, $outputlangs->convToOutputCharset($text), 0, 'L');
|
$pdf->MultiCell(100, 4, $outputlangs->convToOutputCharset($text), 0, 'L');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$pdf->SetFont('','B',$default_font_size + 3);
|
$pdf->SetFont('','B',$default_font_size + 3);
|
||||||
$pdf->SetXY($posx,$posy);
|
$pdf->SetXY($posx,$posy);
|
||||||
|
|||||||
@ -1451,6 +1451,8 @@ class pdf_cyan extends ModelePDFPropales
|
|||||||
$pdf->SetXY($this->marge_gauche,$posy);
|
$pdf->SetXY($this->marge_gauche,$posy);
|
||||||
|
|
||||||
// Logo
|
// Logo
|
||||||
|
if (empty($conf->global->PDF_DISABLE_MYCOMPANY_LOGO))
|
||||||
|
{
|
||||||
$logo=$conf->mycompany->dir_output.'/logos/'.$this->emetteur->logo;
|
$logo=$conf->mycompany->dir_output.'/logos/'.$this->emetteur->logo;
|
||||||
if ($this->emetteur->logo)
|
if ($this->emetteur->logo)
|
||||||
{
|
{
|
||||||
@ -1472,6 +1474,7 @@ class pdf_cyan extends ModelePDFPropales
|
|||||||
$text=$this->emetteur->name;
|
$text=$this->emetteur->name;
|
||||||
$pdf->MultiCell(100, 4, $outputlangs->convToOutputCharset($text), 0, 'L');
|
$pdf->MultiCell(100, 4, $outputlangs->convToOutputCharset($text), 0, 'L');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$pdf->SetFont('','B',$default_font_size + 3);
|
$pdf->SetFont('','B',$default_font_size + 3);
|
||||||
$pdf->SetXY($posx,$posy);
|
$pdf->SetXY($posx,$posy);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user