Qual: Removed deprecated code
This commit is contained in:
parent
38acfebc57
commit
a23602df8f
@ -344,7 +344,6 @@ class pdf_edison extends ModelePDFCommandes
|
|||||||
//antirotate
|
//antirotate
|
||||||
$pdf->_out('Q');
|
$pdf->_out('Q');
|
||||||
}
|
}
|
||||||
//Print content
|
|
||||||
|
|
||||||
$pdf->SetXY(10,8);
|
$pdf->SetXY(10,8);
|
||||||
if (defined("MAIN_INFO_SOCIETE_NOM"))
|
if (defined("MAIN_INFO_SOCIETE_NOM"))
|
||||||
@ -354,31 +353,24 @@ class pdf_edison extends ModelePDFCommandes
|
|||||||
$pdf->MultiCell(76, 4, MAIN_INFO_SOCIETE_NOM, 0, 'L');
|
$pdf->MultiCell(76, 4, MAIN_INFO_SOCIETE_NOM, 0, 'L');
|
||||||
}
|
}
|
||||||
|
|
||||||
$pdf->SetX(10);
|
// Caracteristiques emetteur
|
||||||
$pdf->SetTextColor(70,70,170);
|
$carac_emetteur = '';
|
||||||
if (defined("FAC_PDF_ADRESSE"))
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->adresse);
|
||||||
{
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->cp).' '.$outputlangs->convToOutputCharset($this->emetteur->ville);
|
||||||
$pdf->SetFont('Arial','',12);
|
$carac_emetteur .= "\n";
|
||||||
$pdf->MultiCell(76, 5, FAC_PDF_ADRESSE);
|
// Tel
|
||||||
}
|
if ($this->emetteur->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($this->emetteur->tel);
|
||||||
if (defined("FAC_PDF_TEL"))
|
// Fax
|
||||||
{
|
if ($this->emetteur->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($this->emetteur->fax);
|
||||||
$pdf->SetFont('Arial','',10);
|
// EMail
|
||||||
$pdf->MultiCell(76, 5, $outputlangs->trans("Tel")." : ".FAC_PDF_TEL);
|
if ($this->emetteur->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($this->emetteur->email);
|
||||||
}
|
// Web
|
||||||
if (defined("MAIN_INFO_SIREN"))
|
if ($this->emetteur->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($this->emetteur->url);
|
||||||
{
|
|
||||||
$pdf->SetFont('Arial','',10);
|
$pdf->SetFont('Arial','',9);
|
||||||
$pdf->MultiCell(76, 5, "SIREN : ".MAIN_INFO_SIREN);
|
$pdf->SetXY(12,10);
|
||||||
}
|
$pdf->MultiCell(80,4, $carac_emetteur);
|
||||||
|
|
||||||
if (defined("FAC_PDF_INTITULE2"))
|
|
||||||
{
|
|
||||||
$pdf->SetXY(100,5);
|
|
||||||
$pdf->SetFont('Arial','B',14);
|
|
||||||
$pdf->SetTextColor(0,0,200);
|
|
||||||
$pdf->MultiCell(100, 10, FAC_PDF_INTITULE2, '' , 'R');
|
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
* Adresse Client
|
* Adresse Client
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -851,36 +851,24 @@ class pdf_einstein extends ModelePDFCommandes
|
|||||||
// Nom emetteur
|
// Nom emetteur
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$pdf->SetFont('Arial','B',11);
|
$pdf->SetFont('Arial','B',11);
|
||||||
if (defined("FAC_PDF_SOCIETE_NOM") && FAC_PDF_SOCIETE_NOM) $pdf->MultiCell(80, 4, FAC_PDF_SOCIETE_NOM, 0, 'L');
|
$pdf->MultiCell(80, 4, $outputlangs->convToOutputCharset($this->emetteur->nom), 0, 'L');
|
||||||
else $pdf->MultiCell(80, 4, $outputlangs->convToOutputCharset($this->emetteur->nom), 0, 'L');
|
|
||||||
|
|
||||||
// Caract<EFBFBD>ristiques emetteur
|
// Caracteristiques emetteur
|
||||||
$carac_emetteur = '';
|
$carac_emetteur = '';
|
||||||
if (defined("FAC_PDF_ADRESSE") && FAC_PDF_ADRESSE) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).FAC_PDF_ADRESSE;
|
|
||||||
else {
|
|
||||||
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->adresse);
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->adresse);
|
||||||
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->cp).' '.$outputlangs->convToOutputCharset($this->emetteur->ville);
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->cp).' '.$outputlangs->convToOutputCharset($this->emetteur->ville);
|
||||||
}
|
|
||||||
$carac_emetteur .= "\n";
|
$carac_emetteur .= "\n";
|
||||||
|
|
||||||
// Tel
|
// Tel
|
||||||
if (defined("FAC_PDF_TEL") && FAC_PDF_TEL) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".FAC_PDF_TEL;
|
if ($this->emetteur->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($this->emetteur->tel);
|
||||||
elseif ($this->emetteur->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$this->emetteur->tel;
|
|
||||||
|
|
||||||
// Fax
|
// Fax
|
||||||
if (defined("FAC_PDF_FAX") && FAC_PDF_FAX) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".FAC_PDF_FAX;
|
if ($this->emetteur->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($this->emetteur->fax);
|
||||||
elseif ($this->emetteur->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$this->emetteur->fax;
|
|
||||||
|
|
||||||
// EMail
|
// EMail
|
||||||
if (defined("FAC_PDF_MEL") && FAC_PDF_MEL) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".FAC_PDF_MEL;
|
if ($this->emetteur->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($this->emetteur->email);
|
||||||
elseif ($this->emetteur->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$this->emetteur->email;
|
|
||||||
|
|
||||||
// Web
|
// Web
|
||||||
if (defined("FAC_PDF_WWW") && FAC_PDF_WWW) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".FAC_PDF_WWW;
|
if ($this->emetteur->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($this->emetteur->url);
|
||||||
elseif ($this->emetteur->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$this->emetteur->url;
|
|
||||||
|
|
||||||
$pdf->SetFont('Arial','',9);
|
$pdf->SetFont('Arial','',9);
|
||||||
$pdf->SetXY($this->marge_gauche+2,$posy+8);
|
$pdf->SetXY(12,42);
|
||||||
$pdf->MultiCell(80,4, $carac_emetteur);
|
$pdf->MultiCell(80,4, $carac_emetteur);
|
||||||
|
|
||||||
// Client destinataire
|
// Client destinataire
|
||||||
|
|||||||
@ -39,267 +39,41 @@ class methode_expedition
|
|||||||
function methode_expedition($db=0)
|
function methode_expedition($db=0)
|
||||||
{
|
{
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->name = "NON DEFINIT";
|
$this->name = "NOT DEFINED";
|
||||||
$this->description = "ERREUR DANS LA DEFINITION DU MODULE.";
|
$this->description = "ERROR IN MODULE DESCRIPTION";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function Active($statut)
|
/**
|
||||||
|
* \brief Renvoi la liste des mod<EFBFBD>les actifs
|
||||||
|
* \param db Handler de base
|
||||||
|
*/
|
||||||
|
function liste_modeles($db)
|
||||||
{
|
{
|
||||||
// Mise a jour du statut
|
$type='invoice';
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."expedition_methode set statut = $statut ";
|
$liste=array();
|
||||||
$sql.= " WHERE rowid = ".$this->id;
|
$sql ="SELECT nom as id, nom as lib";
|
||||||
|
$sql.=" FROM ".MAIN_DB_PREFIX."document_model";
|
||||||
$resql = $this->db->query($sql);
|
$sql.=" WHERE type = '".$type."'";
|
||||||
|
|
||||||
|
$resql = $db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
$af = $this->db->affected_rows($resql);
|
$num = $db->num_rows($resql);
|
||||||
|
$i = 0;
|
||||||
if ($af == 0 && $statut == 1)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
// On cre la methode dans la base
|
$row = $db->fetch_row($resql);
|
||||||
|
$liste[$row[0]]=$row[1];
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."expedition_methode";
|
$i++;
|
||||||
$sql .= " (rowid, statut, code, libelle, description)";
|
|
||||||
$sql .= " VALUES (".$this->id.",1,'$this->code','$this->name','$this->description')";
|
|
||||||
|
|
||||||
$resql = $this->db->query($sql);
|
|
||||||
|
|
||||||
if (! $resql)
|
|
||||||
{
|
|
||||||
dolibarr_syslog("methode_expedition::Active Erreur 2");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dolibarr_syslog("methode_expedition::Active Erreur 1");
|
dolibarr_print_error($db);
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
return $liste;
|
||||||
|
|
||||||
|
|
||||||
function write_file($id,$outputlangs)
|
|
||||||
{
|
|
||||||
global $conf, $user;
|
|
||||||
|
|
||||||
$propale = new Propal($this->db,"",$id);
|
|
||||||
if ($propale->fetch($id))
|
|
||||||
{
|
|
||||||
$file = $dir . "/" . $propale->ref . ".pdf";
|
|
||||||
|
|
||||||
if (file_exists($dir))
|
|
||||||
{
|
|
||||||
// Protection et encryption du pdf
|
|
||||||
if ($conf->global->PDF_SECURITY_ENCRYPTION)
|
|
||||||
{
|
|
||||||
$pdf=new FPDI_Protection('P','mm','A4');
|
|
||||||
$pdfrights = array('print'); // Ne permet que l'impression du document
|
|
||||||
$pdfuserpass = ''; // Mot de passe pour l'utilisateur final
|
|
||||||
$pdfownerpass = NULL; // Mot de passe du propri<72>taire, cr<63><72> al<61>atoirement si pas d<>fini
|
|
||||||
$pdf->SetProtection($pdfrights,$pdfuserpass,$pdfownerpass);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$pdf=new FPDI('P','mm',$this->format);
|
|
||||||
}
|
|
||||||
|
|
||||||
$pdf->Open();
|
|
||||||
$pdf->AddPage();
|
|
||||||
|
|
||||||
$pdf->SetTitle($propale->ref);
|
|
||||||
$pdf->SetSubject($outputlangs->trans("Proposal"));
|
|
||||||
$pdf->SetCreator("Dolibarr ".DOL_VERSION);
|
|
||||||
$pdf->SetAuthor($user->fullname);
|
|
||||||
|
|
||||||
$this->_pagehead($pdf, $propale);
|
|
||||||
|
|
||||||
$tab_top = 100;
|
|
||||||
$tab_height = 150;
|
|
||||||
|
|
||||||
$pdf->SetFillColor(220,220,220);
|
|
||||||
|
|
||||||
$pdf->SetTextColor(0,0,0);
|
|
||||||
$pdf->SetFont('Arial','', 10);
|
|
||||||
|
|
||||||
$pdf->SetXY (10, $tab_top + 10 );
|
|
||||||
|
|
||||||
$iniY = $pdf->GetY();
|
|
||||||
$curY = $pdf->GetY();
|
|
||||||
$nexY = $pdf->GetY();
|
|
||||||
$nblignes = sizeof($propale->lignes);
|
|
||||||
|
|
||||||
for ($i = 0 ; $i < $nblignes ; $i++)
|
|
||||||
{
|
|
||||||
|
|
||||||
$curY = $nexY;
|
|
||||||
|
|
||||||
$pdf->SetXY (30, $curY );
|
|
||||||
|
|
||||||
$pdf->MultiCell(100, 5, $propale->lignes[$i]->desc, 0, 'J', 0);
|
|
||||||
|
|
||||||
$nexY = $pdf->GetY();
|
|
||||||
|
|
||||||
$pdf->SetXY (10, $curY );
|
|
||||||
|
|
||||||
$pdf->MultiCell(20, 5, $propale->lignes[$i]->ref, 0, 'C');
|
|
||||||
|
|
||||||
$pdf->SetXY (133, $curY );
|
|
||||||
$pdf->MultiCell(10, 5, $propale->lignes[$i]->tva_tx, 0, 'C');
|
|
||||||
|
|
||||||
$pdf->SetXY (145, $curY );
|
|
||||||
$pdf->MultiCell(10, 5, $propale->lignes[$i]->qty, 0, 'C');
|
|
||||||
|
|
||||||
$pdf->SetXY (156, $curY );
|
|
||||||
$pdf->MultiCell(18, 5, price($propale->lignes[$i]->price), 0, 'R', 0);
|
|
||||||
|
|
||||||
$pdf->SetXY (174, $curY );
|
|
||||||
$total = price($propale->lignes[$i]->price * $propale->lignes[$i]->qty);
|
|
||||||
$pdf->MultiCell(26, 5, $total, 0, 'R', 0);
|
|
||||||
|
|
||||||
$pdf->line(10, $curY, 200, $curY );
|
|
||||||
|
|
||||||
if ($nexY > 240 && $i < $nblignes - 1)
|
|
||||||
{
|
|
||||||
$this->_tableau($pdf, $tab_top, $tab_height, $nexY);
|
|
||||||
$pdf->AddPage();
|
|
||||||
$nexY = $iniY;
|
|
||||||
$this->_pagehead($pdf, $propale);
|
|
||||||
$pdf->SetTextColor(0,0,0);
|
|
||||||
$pdf->SetFont('Arial','', 10);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->_tableau($pdf, $tab_top, $tab_height, $nexY);
|
|
||||||
/*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
$tab2_top = 254;
|
|
||||||
$tab2_lh = 7;
|
|
||||||
$tab2_height = $tab2_lh * 3;
|
|
||||||
|
|
||||||
$pdf->SetFont('Arial','', 11);
|
|
||||||
|
|
||||||
$pdf->Rect(132, $tab2_top, 68, $tab2_height);
|
|
||||||
|
|
||||||
$pdf->line(132, $tab2_top + $tab2_height - ($tab2_lh*3), 200, $tab2_top + $tab2_height - ($tab2_lh*3) );
|
|
||||||
$pdf->line(132, $tab2_top + $tab2_height - ($tab2_lh*2), 200, $tab2_top + $tab2_height - ($tab2_lh*2) );
|
|
||||||
$pdf->line(132, $tab2_top + $tab2_height - $tab2_lh, 200, $tab2_top + $tab2_height - $tab2_lh );
|
|
||||||
|
|
||||||
$pdf->line(174, $tab2_top, 174, $tab2_top + $tab2_height);
|
|
||||||
|
|
||||||
$pdf->SetXY (132, $tab2_top + 0);
|
|
||||||
$pdf->MultiCell(42, $tab2_lh, "Total HT", 0, 'R', 0);
|
|
||||||
|
|
||||||
$pdf->SetXY (132, $tab2_top + $tab2_lh);
|
|
||||||
$pdf->MultiCell(42, $tab2_lh, "Total TVA", 0, 'R', 0);
|
|
||||||
|
|
||||||
$pdf->SetXY (132, $tab2_top + ($tab2_lh*2));
|
|
||||||
$pdf->MultiCell(42, $tab2_lh, "Total TTC", 1, 'R', 1);
|
|
||||||
|
|
||||||
$pdf->SetXY (174, $tab2_top + 0);
|
|
||||||
$pdf->MultiCell(26, $tab2_lh, price($propale->total_ht), 0, 'R', 0);
|
|
||||||
|
|
||||||
$pdf->SetXY (174, $tab2_top + $tab2_lh);
|
|
||||||
$pdf->MultiCell(26, $tab2_lh, price($propale->total_tva), 0, 'R', 0);
|
|
||||||
|
|
||||||
$pdf->SetXY (174, $tab2_top + ($tab2_lh*2));
|
|
||||||
$pdf->MultiCell(26, $tab2_lh, price($propale->total_ttc), 1, 'R', 1);
|
|
||||||
|
|
||||||
/*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
$pdf->Output($file);
|
|
||||||
if (! empty($conf->global->MAIN_UMASK))
|
|
||||||
@chmod($file, octdec($conf->global->MAIN_UMASK));
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _tableau(&$pdf, $tab_top, $tab_height, $nexY)
|
|
||||||
{
|
|
||||||
|
|
||||||
$pdf->SetFont('Arial','',11);
|
|
||||||
|
|
||||||
$pdf->Text(30,$tab_top + 5,'D<>signation');
|
|
||||||
|
|
||||||
$pdf->line(132, $tab_top, 132, $tab_top + $tab_height);
|
|
||||||
$pdf->Text(134,$tab_top + 5,'TVA');
|
|
||||||
|
|
||||||
$pdf->line(144, $tab_top, 144, $tab_top + $tab_height);
|
|
||||||
$pdf->Text(147,$tab_top + 5,'Qt<51>');
|
|
||||||
|
|
||||||
$pdf->line(156, $tab_top, 156, $tab_top + $tab_height);
|
|
||||||
$pdf->Text(160,$tab_top + 5,'P.U.');
|
|
||||||
|
|
||||||
$pdf->line(174, $tab_top, 174, $tab_top + $tab_height);
|
|
||||||
$pdf->Text(187,$tab_top + 5,'Total');
|
|
||||||
|
|
||||||
// $pdf->Rect(10, $tab_top, 190, $nexY - $tab_top);
|
|
||||||
$pdf->Rect(10, $tab_top, 190, $tab_height);
|
|
||||||
|
|
||||||
|
|
||||||
$pdf->SetTextColor(0,0,0);
|
|
||||||
$pdf->SetFont('Arial','',10);
|
|
||||||
$titre = $langs->trans("AmountInCurrency",$langs->trans("Currency".$conf->monnaie));
|
|
||||||
$pdf->Text(200 - $pdf->GetStringWidth($titre), 98, $titre);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function _pagehead(&$pdf, $propale)
|
|
||||||
{
|
|
||||||
$pdf->SetXY(10,5);
|
|
||||||
if (defined("FAC_PDF_INTITULE"))
|
|
||||||
{
|
|
||||||
$pdf->SetTextColor(0,0,200);
|
|
||||||
$pdf->SetFont('Times','B',14);
|
|
||||||
$pdf->MultiCell(76, 8, FAC_PDF_INTITULE, 0, 'L');
|
|
||||||
}
|
|
||||||
|
|
||||||
$pdf->SetTextColor(70,70,170);
|
|
||||||
if (defined("FAC_PDF_ADRESSE"))
|
|
||||||
{
|
|
||||||
$pdf->SetFont('Times','',12);
|
|
||||||
$pdf->MultiCell(76, 5, FAC_PDF_ADRESSE);
|
|
||||||
}
|
|
||||||
if (defined("FAC_PDF_TEL"))
|
|
||||||
{
|
|
||||||
$pdf->SetFont('Times','',10);
|
|
||||||
$pdf->MultiCell(76, 5, "T<EFBFBD>l : ".FAC_PDF_TEL);
|
|
||||||
}
|
|
||||||
if (defined("FAC_PDF_SIREN"))
|
|
||||||
{
|
|
||||||
$pdf->SetFont('Times','',10);
|
|
||||||
$pdf->MultiCell(76, 5, "SIREN : ".FAC_PDF_SIREN);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (defined("FAC_PDF_INTITULE2"))
|
|
||||||
{
|
|
||||||
$pdf->SetXY(100,5);
|
|
||||||
$pdf->SetFont('Times','B',14);
|
|
||||||
$pdf->SetTextColor(0,0,200);
|
|
||||||
$pdf->MultiCell(100, 10, FAC_PDF_INTITULE2, '' , 'R');
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* Adresse Client
|
|
||||||
*/
|
|
||||||
$pdf->SetTextColor(0,0,0);
|
|
||||||
$pdf->SetFont('Courier','B',12);
|
|
||||||
$propale->fetch_client();
|
|
||||||
$pdf->SetXY(102,42);
|
|
||||||
$pdf->MultiCell(96,5, $propale->client->nom);
|
|
||||||
$pdf->SetFont('Courier','B',11);
|
|
||||||
$pdf->SetXY(102,47);
|
|
||||||
$pdf->MultiCell(96,5, $propale->client->adresse . "\n" . $propale->client->cp . " " . $propale->client->ville);
|
|
||||||
$pdf->rect(100, 40, 100, 40);
|
|
||||||
|
|
||||||
|
|
||||||
$pdf->SetTextColor(200,0,0);
|
|
||||||
$pdf->SetFont('Courier','B',12);
|
|
||||||
$pdf->Text(11, 88, $outputlangs->trans("Date")." : " . dolibarr_print_date($propale->date,'day',false,$outputlangs));
|
|
||||||
$pdf->Text(11, 94, $outputlangs->trans("Proposal")." : ".$propale->ref);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -161,7 +161,7 @@ Class pdf_expedition_merou extends ModelePdfExpedition
|
|||||||
//Generation de l entete du fichier
|
//Generation de l entete du fichier
|
||||||
$pdf->SetTitle($this->expe->ref);
|
$pdf->SetTitle($this->expe->ref);
|
||||||
$pdf->SetSubject($langs->transnoentities("Sending"));
|
$pdf->SetSubject($langs->transnoentities("Sending"));
|
||||||
$pdf->SetCreator("EXPRESSIV Dolibarr ".DOL_VERSION);
|
$pdf->SetCreator("Dolibarr ".DOL_VERSION);
|
||||||
$pdf->SetAuthor($user->fullname);
|
$pdf->SetAuthor($user->fullname);
|
||||||
$pdf->SetMargins(10, 10, 10);
|
$pdf->SetMargins(10, 10, 10);
|
||||||
$pdf->SetAutoPageBreak(1,0);
|
$pdf->SetAutoPageBreak(1,0);
|
||||||
@ -329,21 +329,19 @@ Class pdf_expedition_merou extends ModelePdfExpedition
|
|||||||
$pdf->MultiCell(100, 3, $langs->transnoentities("ErrorGoToModuleSetup"), 0, 'L');
|
$pdf->MultiCell(100, 3, $langs->transnoentities("ErrorGoToModuleSetup"), 0, 'L');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(defined("MAIN_INFO_SOCIETE_NOM") && FAC_PDF_SOCIETE_NOM)
|
else $pdf->MultiCell(100, 4, $outputlangs->convToOutputCharset($this->emetteur->nom), 0, 'L');
|
||||||
{
|
|
||||||
$pdf->MultiCell(100, 4, MAIN_INFO_SOCIETE_NOM, 0, 'L');
|
|
||||||
}
|
|
||||||
|
|
||||||
//*********************Entete****************************
|
//*********************Entete****************************
|
||||||
//Nom du Document
|
//Nom du Document
|
||||||
|
$Xoff = 94;
|
||||||
$Yoff = 0;
|
$Yoff = 0;
|
||||||
$pdf->SetXY(60,7);
|
$pdf->SetXY($Xoff,7);
|
||||||
$pdf->SetFont('Arial','B',14);
|
$pdf->SetFont('Arial','B',12);
|
||||||
$pdf->SetTextColor(0,0,0);
|
$pdf->SetTextColor(0,0,0);
|
||||||
$pdf->MultiCell(0, 8, $outputlangs->transnoentities("SendingSheet"), '' , 'L'); // Bordereau expedition
|
$pdf->MultiCell(0, 8, $outputlangs->transnoentities("SendingSheet"), '' , 'L'); // Bordereau expedition
|
||||||
//Num Expedition
|
//Num Expedition
|
||||||
$Yoff = $Yoff+7;
|
$Yoff = $Yoff+7;
|
||||||
$Xoff = 140;
|
$Xoff = 160;
|
||||||
// $pdf->rect($Xoff, $Yoff, 85, 8);
|
// $pdf->rect($Xoff, $Yoff, 85, 8);
|
||||||
$pdf->SetXY($Xoff,$Yoff);
|
$pdf->SetXY($Xoff,$Yoff);
|
||||||
$pdf->SetFont('Arial','',8);
|
$pdf->SetFont('Arial','',8);
|
||||||
@ -358,67 +356,32 @@ Class pdf_expedition_merou extends ModelePdfExpedition
|
|||||||
$pdf->SetTextColor(0,0,0);
|
$pdf->SetTextColor(0,0,0);
|
||||||
$pdf->MultiCell(0, 8, $outputlangs->transnoentities("RefOrder").': '.$outputlangs->convToOutputCharset($exp->commande->ref), '' , 'L');
|
$pdf->MultiCell(0, 8, $outputlangs->transnoentities("RefOrder").': '.$outputlangs->convToOutputCharset($exp->commande->ref), '' , 'L');
|
||||||
|
|
||||||
$Xoff = 115;
|
|
||||||
//$this->Code39($Xoff+43, $Yoff+1, $exp->commande->ref,$ext = true, $cks = false, $w = 0.4, $h = 4, $wide = true);
|
//$this->Code39($Xoff+43, $Yoff+1, $exp->commande->ref,$ext = true, $cks = false, $w = 0.4, $h = 4, $wide = true);
|
||||||
//Definition Emplacement du bloc Societe
|
//Definition Emplacement du bloc Societe
|
||||||
|
$Xoff = 115;
|
||||||
$blSocX=11;
|
$blSocX=11;
|
||||||
$blSocY=25;
|
$blSocY=25;
|
||||||
$blSocW=50;
|
$blSocW=50;
|
||||||
$blSocX2=$blSocW+$blSocXs;
|
$blSocX2=$blSocW+$blSocXs;
|
||||||
$pdf->SetTextColor(0,0,0);
|
$pdf->SetTextColor(0,0,0);
|
||||||
//Adresse Internet
|
|
||||||
if (defined("FAC_PDF_WWW")){
|
|
||||||
$pdf->SetXY($blSocX,$blSocY);
|
|
||||||
$pdf->SetFont('Arial','B',8);
|
|
||||||
$pdf->MultiCell($blSocW, 3, FAC_PDF_WWW, '' , 'L');
|
|
||||||
}
|
|
||||||
if (defined("FAC_PDF_ADRESSE")){
|
|
||||||
$pdf->SetFont('Arial','',7);
|
|
||||||
$pdf->SetXY($blSocX,$blSocY+3);
|
|
||||||
$pdf->MultiCell($blSocW, 3, FAC_PDF_ADRESSE, '' , 'L');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (defined("FAC_PDF_ADRESSE2")){
|
// Caracteristiques emetteur
|
||||||
$pdf->SetFont('Arial','',7);
|
$carac_emetteur = '';
|
||||||
$pdf->SetXY($blSocX,$blSocY+6);
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->adresse);
|
||||||
$pdf->MultiCell($blSocW, 3, FAC_PDF_ADRESSE2, '' , 'L');
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->cp).' '.$outputlangs->convToOutputCharset($this->emetteur->ville);
|
||||||
}
|
$carac_emetteur .= "\n";
|
||||||
|
// Tel
|
||||||
|
if ($this->emetteur->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($this->emetteur->tel);
|
||||||
|
// Fax
|
||||||
|
if ($this->emetteur->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($this->emetteur->fax);
|
||||||
|
// EMail
|
||||||
|
if ($this->emetteur->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($this->emetteur->email);
|
||||||
|
// Web
|
||||||
|
if ($this->emetteur->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($this->emetteur->url);
|
||||||
|
|
||||||
if (defined("FAC_PDF_TEL")){
|
|
||||||
$pdf->SetFont('Arial','',7);
|
$pdf->SetFont('Arial','',7);
|
||||||
$pdf->SetXY($blSocX,$blSocY+10);
|
$pdf->SetXY($blSocX,$blSocY+4);
|
||||||
$pdf->MultiCell($blSocW, 3, $outputlangs->transnoentities("Tel")." : " . FAC_PDF_TEL, '' , 'L');
|
$pdf->MultiCell(80,2, $carac_emetteur);
|
||||||
}
|
|
||||||
|
|
||||||
if (defined("FAC_PDF_MEL")){
|
|
||||||
$pdf->SetFont('Arial','',7);
|
|
||||||
$pdf->SetXY($blSocX,$blSocY+13);
|
|
||||||
$pdf->MultiCell(40, 3, $outputlangs->transnoentities("Email")." : " . FAC_PDF_MEL, '' , 'L');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (defined("FAC_PDF_FAX")){
|
|
||||||
$pdf->SetFont('Arial','',7);
|
|
||||||
$pdf->SetXY($blSocX,$blSocY+16);
|
|
||||||
$pdf->MultiCell(40, 3, $outputlangs->transnoentities("Fax")." : " . FAC_PDF_FAX, '' , 'L');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (defined("MAIN_INFO_SIRET")){
|
|
||||||
$pdf->SetFont('Arial','',7);
|
|
||||||
$pdf->SetXY($blSocX2,$blSocY+10);
|
|
||||||
$pdf->MultiCell($blSocW, 3, $outputlangs->transnoentities("SIRET")." : " . MAIN_INFO_SIRET, '' , 'L');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (defined("MAIN_INFO_APE")){
|
|
||||||
$pdf->SetFont('Arial','',7);
|
|
||||||
$pdf->SetXY($blSocX2,$blSocY+13);
|
|
||||||
$pdf->MultiCell($blSocW, 3, $outputlangs->transnoentities("APE")." : " . MAIN_INFO_APE, '' , 'L');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (defined("MAIN_INFO_TVAINTRA")){
|
|
||||||
$pdf->SetFont('Arial','',7);
|
|
||||||
$pdf->SetXY($blSocX2,$blSocY+16);
|
|
||||||
$pdf->MultiCell($blSocW, 3, $outputlangs->transnoentities("VATIntra")." : " . MAIN_INFO_TVAINTRA, '' , 'L');
|
|
||||||
}
|
|
||||||
|
|
||||||
//Date Expedition
|
//Date Expedition
|
||||||
$Yoff = $Yoff+7;
|
$Yoff = $Yoff+7;
|
||||||
@ -432,6 +395,7 @@ Class pdf_expedition_merou extends ModelePdfExpedition
|
|||||||
$pdf->SetTextColor(0,0,0);
|
$pdf->SetTextColor(0,0,0);
|
||||||
$pdf->MultiCell(50, 8, $outputlangs->transnoentities("Deliverer")." ".$outputlangs->convToOutputCharset($livreur->fullname), '' , 'L');
|
$pdf->MultiCell(50, 8, $outputlangs->transnoentities("Deliverer")." ".$outputlangs->convToOutputCharset($livreur->fullname), '' , 'L');
|
||||||
|
|
||||||
|
|
||||||
/**********************************/
|
/**********************************/
|
||||||
//Emplacement Informations Expediteur (Client)
|
//Emplacement Informations Expediteur (Client)
|
||||||
/**********************************/
|
/**********************************/
|
||||||
|
|||||||
@ -1075,33 +1075,25 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
// Nom emetteur
|
// Nom emetteur
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$pdf->SetFont('Arial','B',11);
|
$pdf->SetFont('Arial','B',11);
|
||||||
if (defined("FAC_PDF_SOCIETE_NOM") && FAC_PDF_SOCIETE_NOM) $pdf->MultiCell(80, 4, FAC_PDF_SOCIETE_NOM, 0, 'L'); // deprecated
|
$pdf->MultiCell(80, 4, $outputlangs->convToOutputCharset($this->emetteur->nom), 0, 'L');
|
||||||
else $pdf->MultiCell(80, 4, $this->emetteur->nom, 0, 'L');
|
|
||||||
|
|
||||||
// Caracteristiques emetteur
|
// Caracteristiques emetteur
|
||||||
$carac_emetteur = '';
|
$carac_emetteur = '';
|
||||||
if (defined("FAC_PDF_ADRESSE") && FAC_PDF_ADRESSE) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).FAC_PDF_ADRESSE; // deprecated
|
|
||||||
else {
|
|
||||||
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->adresse);
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->adresse);
|
||||||
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->cp).' '.$outputlangs->convToOutputCharset($this->emetteur->ville);
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->cp).' '.$outputlangs->convToOutputCharset($this->emetteur->ville);
|
||||||
}
|
|
||||||
$carac_emetteur .= "\n";
|
$carac_emetteur .= "\n";
|
||||||
// Tel
|
// Tel
|
||||||
if (defined("FAC_PDF_TEL") && FAC_PDF_TEL) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".FAC_PDF_TEL;
|
if ($this->emetteur->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($this->emetteur->tel);
|
||||||
elseif ($this->emetteur->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($this->emetteur->tel);
|
|
||||||
// Fax
|
// Fax
|
||||||
if (defined("FAC_PDF_FAX") && FAC_PDF_FAX) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".FAC_PDF_FAX;
|
if ($this->emetteur->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($this->emetteur->fax);
|
||||||
elseif ($this->emetteur->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($this->emetteur->fax);
|
|
||||||
// EMail
|
// EMail
|
||||||
if (defined("FAC_PDF_MEL") && FAC_PDF_MEL) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".FAC_PDF_MEL;
|
if ($this->emetteur->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($this->emetteur->email);
|
||||||
elseif ($this->emetteur->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($this->emetteur->email);
|
|
||||||
// Web
|
// Web
|
||||||
if (defined("FAC_PDF_WWW") && FAC_PDF_WWW) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".FAC_PDF_WWW;
|
if ($this->emetteur->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($this->emetteur->url);
|
||||||
elseif ($this->emetteur->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($this->emetteur->url);
|
|
||||||
|
|
||||||
$pdf->SetFont('Arial','',9);
|
$pdf->SetFont('Arial','',9);
|
||||||
$pdf->SetXY($this->marge_gauche+2,$posy+8);
|
$pdf->SetXY($this->marge_gauche+2,$posy+8);
|
||||||
$pdf->MultiCell(80,4, $carac_emetteur);
|
$pdf->MultiCell(80,3, $carac_emetteur);
|
||||||
|
|
||||||
// Client destinataire
|
// Client destinataire
|
||||||
$posy=42;
|
$posy=42;
|
||||||
|
|||||||
@ -498,8 +498,8 @@ class pdf_huitre extends ModelePDFFactures
|
|||||||
$pdf->_out('Q');
|
$pdf->_out('Q');
|
||||||
}
|
}
|
||||||
//Print content
|
//Print content
|
||||||
|
|
||||||
$pdf->SetXY(10,5);
|
$pdf->SetXY(10,5);
|
||||||
|
$posy=5;
|
||||||
|
|
||||||
// Logo
|
// Logo
|
||||||
$logo=$conf->societe->dir_logos.'/'.$this->emetteur->logo;
|
$logo=$conf->societe->dir_logos.'/'.$this->emetteur->logo;
|
||||||
@ -507,55 +507,44 @@ class pdf_huitre extends ModelePDFFactures
|
|||||||
{
|
{
|
||||||
if (is_readable($logo))
|
if (is_readable($logo))
|
||||||
{
|
{
|
||||||
$pdf->Image($logo, 10, 5,45.0, 25.0);
|
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 24);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$pdf->SetTextColor(200,0,0);
|
$pdf->SetTextColor(200,0,0);
|
||||||
$pdf->SetFont('Arial','B',8);
|
$pdf->SetFont('Arial','B',8);
|
||||||
$pdf->MultiCell(80, 3, $outputlangs->transnoentities("ErrorLogoFileNotFound",$logo), 0, 'L');
|
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("ErrorLogoFileNotFound",$logo), 0, 'L');
|
||||||
$pdf->MultiCell(80, 3, $outputlangs->transnoentities("ErrorGoToGlobalSetup"), 0, 'L');
|
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("ErrorGoToGlobalSetup"), 0, 'L');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (defined("FAC_PDF_INTITULE"))
|
else if (defined("FAC_PDF_INTITULE"))
|
||||||
{
|
{
|
||||||
$pdf->MultiCell(80, 6, FAC_PDF_INTITULE, 0, 'L');
|
$pdf->MultiCell(100, 4, FAC_PDF_INTITULE, 0, 'L');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$pdf->SetTextColor(0,0,0);
|
||||||
$pdf->SetDrawColor(192,192,192);
|
$pdf->SetDrawColor(192,192,192);
|
||||||
$pdf->line(9, 5, 200, 5 );
|
$pdf->line(9, 5, 200, 5 );
|
||||||
$pdf->line(9, 30, 200, 30 );
|
$pdf->line(9, 30, 200, 30 );
|
||||||
|
|
||||||
$pdf->SetFont('Arial','B',7);
|
// Caracteristiques emetteur
|
||||||
$pdf->SetTextColor(128,128,128);
|
$carac_emetteur = '';
|
||||||
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->adresse);
|
||||||
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->cp).' '.$outputlangs->convToOutputCharset($this->emetteur->ville);
|
||||||
|
$carac_emetteur .= "\n";
|
||||||
|
// Tel
|
||||||
|
if ($this->emetteur->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($this->emetteur->tel);
|
||||||
|
// Fax
|
||||||
|
if ($this->emetteur->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($this->emetteur->fax);
|
||||||
|
// EMail
|
||||||
|
if ($this->emetteur->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($this->emetteur->email);
|
||||||
|
// Web
|
||||||
|
if ($this->emetteur->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($this->emetteur->url);
|
||||||
|
|
||||||
|
$pdf->SetFont('Arial','',9);
|
||||||
|
$pdf->SetXY($tab4_top+28,$tab4_hl);
|
||||||
|
$pdf->MultiCell(110,3, $carac_emetteur);
|
||||||
|
|
||||||
if (defined("FAC_PDF_ADRESSE"))
|
|
||||||
{
|
|
||||||
$pdf->SetXY( $tab4_top , $tab4_hl );
|
|
||||||
$pdf->MultiCell(80, 3, FAC_PDF_ADRESSE, '' , 'L');
|
|
||||||
}
|
|
||||||
$pdf->SetFont('Arial','',7);
|
|
||||||
if (defined("FAC_PDF_TEL"))
|
|
||||||
{
|
|
||||||
$pdf->SetXY( $tab4_top , $tab4_hl + 2*$tab4_sl );
|
|
||||||
$pdf->MultiCell(80, 3, $outputlangs->transnoentities('FullPhoneNumber').' : ' . FAC_PDF_TEL, '' , 'L');
|
|
||||||
}
|
|
||||||
if (defined("FAC_PDF_FAX"))
|
|
||||||
{
|
|
||||||
$pdf->SetXY( $tab4_top , $tab4_hl + 3*$tab4_sl );
|
|
||||||
$pdf->MultiCell(80, 3, $outputlangs->transnoentities('TeleFax').' : ' . FAC_PDF_FAX, '' , 'L');
|
|
||||||
}
|
|
||||||
if (defined("FAC_PDF_MEL"))
|
|
||||||
{
|
|
||||||
$pdf->SetXY( $tab4_top , $tab4_hl + 4*$tab4_sl );
|
|
||||||
$pdf->MultiCell(80, 3, $outputlangs->transnoentities('Email').' : ' . FAC_PDF_MEL, '' , 'L');
|
|
||||||
}
|
|
||||||
if (defined("FAC_PDF_WWW"))
|
|
||||||
{
|
|
||||||
$pdf->SetXY( $tab4_top , $tab4_hl + 5*$tab4_sl );
|
|
||||||
$pdf->MultiCell(80, 3, $outputlangs->transnoentities('Web').' : ' . FAC_PDF_WWW, '' , 'L');
|
|
||||||
}
|
|
||||||
$pdf->SetTextColor(70,70,170);
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -165,7 +165,7 @@ class pdf_oursin extends ModelePDFFactures
|
|||||||
$pdf->Open();
|
$pdf->Open();
|
||||||
$pdf->AddPage();
|
$pdf->AddPage();
|
||||||
|
|
||||||
$this->_pagehead($pdf, $fac);
|
$this->_pagehead($pdf, $fac, $outputlangs);
|
||||||
|
|
||||||
$pdf->SetTitle($fac->ref);
|
$pdf->SetTitle($fac->ref);
|
||||||
$pdf->SetSubject($outputlangs->transnoentities("Invoice"));
|
$pdf->SetSubject($outputlangs->transnoentities("Invoice"));
|
||||||
@ -244,7 +244,7 @@ class pdf_oursin extends ModelePDFFactures
|
|||||||
$this->_tableau($pdf, $tab_top, $tab_height, $nexY, $fac);
|
$this->_tableau($pdf, $tab_top, $tab_height, $nexY, $fac);
|
||||||
$pdf->AddPage();
|
$pdf->AddPage();
|
||||||
$nexY = $iniY;
|
$nexY = $iniY;
|
||||||
$this->_pagehead($pdf, $fac);
|
$this->_pagehead($pdf, $fac, $outputlangs);
|
||||||
$pdf->SetTextColor(0,0,0);
|
$pdf->SetTextColor(0,0,0);
|
||||||
$pdf->SetFont('Arial','', 10);
|
$pdf->SetFont('Arial','', 10);
|
||||||
}
|
}
|
||||||
@ -623,7 +623,7 @@ class pdf_oursin extends ModelePDFFactures
|
|||||||
* \param pdf objet PDF
|
* \param pdf objet PDF
|
||||||
* \param fac objet facture
|
* \param fac objet facture
|
||||||
*/
|
*/
|
||||||
function _pagehead(&$pdf, $fac)
|
function _pagehead(&$pdf, $fac, $outputlangs)
|
||||||
{
|
{
|
||||||
global $langs,$conf;
|
global $langs,$conf;
|
||||||
$langs->load("main");
|
$langs->load("main");
|
||||||
@ -698,33 +698,26 @@ class pdf_oursin extends ModelePDFFactures
|
|||||||
// Nom emetteur
|
// Nom emetteur
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$pdf->SetFont('Arial','B',12);
|
$pdf->SetFont('Arial','B',12);
|
||||||
if (defined("FAC_PDF_SOCIETE_NOM") && FAC_PDF_SOCIETE_NOM) // Prioritaire sur MAIN_INFO_SOCIETE_NOM
|
$pdf->MultiCell(80, 4, $outputlangs->convToOutputCharset($this->emetteur->nom), 0, 'L');
|
||||||
{
|
|
||||||
$pdf->MultiCell(80, 4, FAC_PDF_SOCIETE_NOM, 0, 'L');
|
// Caracteristiques emetteur
|
||||||
}
|
$carac_emetteur = '';
|
||||||
else // Par defaut
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->adresse);
|
||||||
{
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->cp).' '.$outputlangs->convToOutputCharset($this->emetteur->ville);
|
||||||
$pdf->MultiCell(80, 4, MAIN_INFO_SOCIETE_NOM, 0, 'L');
|
$carac_emetteur .= "\n";
|
||||||
}
|
// Tel
|
||||||
|
if ($this->emetteur->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($this->emetteur->tel);
|
||||||
|
// Fax
|
||||||
|
if ($this->emetteur->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($this->emetteur->fax);
|
||||||
|
// EMail
|
||||||
|
if ($this->emetteur->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($this->emetteur->email);
|
||||||
|
// Web
|
||||||
|
if ($this->emetteur->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($this->emetteur->url);
|
||||||
|
|
||||||
// Caract<63>ristiques emetteur
|
|
||||||
$pdf->SetFont('Arial','',9);
|
$pdf->SetFont('Arial','',9);
|
||||||
if (defined("FAC_PDF_ADRESSE"))
|
$pdf->SetXY($this->marge_gauche,$posy+9);
|
||||||
{
|
$pdf->MultiCell(80,3, $carac_emetteur);
|
||||||
$pdf->MultiCell(80, 4, FAC_PDF_ADRESSE);
|
|
||||||
}
|
|
||||||
if (defined("FAC_PDF_TEL") && FAC_PDF_TEL)
|
|
||||||
{
|
|
||||||
$pdf->MultiCell(80, 4, $langs->transnoentities("Phone").": ".FAC_PDF_TEL);
|
|
||||||
}
|
|
||||||
if (defined("FAC_PDF_MEL") && FAC_PDF_MEL)
|
|
||||||
{
|
|
||||||
$pdf->MultiCell(80, 4, $langs->transnoentities("Email").": ".FAC_PDF_MEL);
|
|
||||||
}
|
|
||||||
if (defined("FAC_PDF_WWW") && FAC_PDF_WWW)
|
|
||||||
{
|
|
||||||
$pdf->MultiCell(80, 4, $langs->transnoentities("Web").": ".FAC_PDF_WWW);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Client
|
* Client
|
||||||
|
|||||||
@ -199,33 +199,25 @@ class pdf_soleil extends ModelePDFFicheinter
|
|||||||
|
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$pdf->SetFont('Arial','B',11);
|
$pdf->SetFont('Arial','B',11);
|
||||||
if (defined("FAC_PDF_SOCIETE_NOM") && FAC_PDF_SOCIETE_NOM) $pdf->MultiCell(80, 4, FAC_PDF_SOCIETE_NOM, 0, 'L');
|
$pdf->MultiCell(80, 4, $outputlangs->convToOutputCharset($this->emetteur->nom), 0, 'L');
|
||||||
else $pdf->MultiCell(80, 4, $outputlangs->convToOutputCharset($mysoc->nom), 0, 'L');
|
|
||||||
|
|
||||||
// Caracteristiques emetteur
|
// Caracteristiques emetteur
|
||||||
$carac_emetteur = '';
|
$carac_emetteur = '';
|
||||||
if (defined("FAC_PDF_ADRESSE") && FAC_PDF_ADRESSE) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).FAC_PDF_ADRESSE;
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->adresse);
|
||||||
else {
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->cp).' '.$outputlangs->convToOutputCharset($this->emetteur->ville);
|
||||||
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($mysoc->adresse);
|
|
||||||
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($mysoc->cp).' '.$outputlangs->convToOutputCharset($mysoc->ville);
|
|
||||||
}
|
|
||||||
$carac_emetteur .= "\n";
|
$carac_emetteur .= "\n";
|
||||||
// Tel
|
// Tel
|
||||||
if (defined("FAC_PDF_TEL") && FAC_PDF_TEL) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".FAC_PDF_TEL;
|
if ($this->emetteur->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($this->emetteur->tel);
|
||||||
elseif ($mysoc->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($mysoc->tel);
|
|
||||||
// Fax
|
// Fax
|
||||||
if (defined("FAC_PDF_FAX") && FAC_PDF_FAX) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".FAC_PDF_FAX;
|
if ($this->emetteur->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($this->emetteur->fax);
|
||||||
elseif ($mysoc->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($mysoc->fax);
|
|
||||||
// EMail
|
// EMail
|
||||||
if (defined("FAC_PDF_MEL") && FAC_PDF_MEL) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".FAC_PDF_MEL;
|
if ($this->emetteur->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($this->emetteur->email);
|
||||||
elseif ($mysoc->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($mysoc->email);
|
|
||||||
// Web
|
// Web
|
||||||
if (defined("FAC_PDF_WWW") && FAC_PDF_WWW) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".FAC_PDF_WWW;
|
if ($this->emetteur->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($this->emetteur->url);
|
||||||
elseif ($mysoc->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($mysoc->url);
|
|
||||||
|
|
||||||
$pdf->SetFont('Arial','',9);
|
$pdf->SetFont('Arial','',9);
|
||||||
$pdf->SetXY($this->marge_gauche+2,$posy+8);
|
$pdf->SetXY($this->marge_gauche+2,$posy+9);
|
||||||
$pdf->MultiCell(80,4, $carac_emetteur);
|
$pdf->MultiCell(80,3, $carac_emetteur);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -316,34 +316,28 @@ class pdf_sirocco extends ModelePDFDeliveryOrder
|
|||||||
if (defined("MAIN_INFO_SOCIETE_NOM"))
|
if (defined("MAIN_INFO_SOCIETE_NOM"))
|
||||||
{
|
{
|
||||||
$pdf->SetTextColor(0,0,200);
|
$pdf->SetTextColor(0,0,200);
|
||||||
$pdf->SetFont('Arial','B',14);
|
$pdf->SetFont('Arial','B',12);
|
||||||
$pdf->MultiCell(76, 8, $outputlangs->convToOutputCharset(MAIN_INFO_SOCIETE_NOM), 0, 'L');
|
$pdf->MultiCell(76, 4, $outputlangs->convToOutputCharset(MAIN_INFO_SOCIETE_NOM), 0, 'L');
|
||||||
}
|
}
|
||||||
|
|
||||||
$pdf->SetTextColor(70,70,170);
|
// Caracteristiques emetteur
|
||||||
if (defined("FAC_PDF_ADRESSE"))
|
$carac_emetteur = '';
|
||||||
{
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->adresse);
|
||||||
$pdf->SetFont('Arial','',12);
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->cp).' '.$outputlangs->convToOutputCharset($this->emetteur->ville);
|
||||||
$pdf->MultiCell(76, 5, $outputlangs->convToOutputCharset(FAC_PDF_ADRESSE));
|
$carac_emetteur .= "\n";
|
||||||
}
|
// Tel
|
||||||
if (defined("FAC_PDF_TEL"))
|
if ($this->emetteur->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($this->emetteur->tel);
|
||||||
{
|
// Fax
|
||||||
$pdf->SetFont('Arial','',10);
|
if ($this->emetteur->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($this->emetteur->fax);
|
||||||
$pdf->MultiCell(76, 5, "Tel : ".$outputlangs->convToOutputCharset(FAC_PDF_TEL));
|
// EMail
|
||||||
}
|
if ($this->emetteur->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($this->emetteur->email);
|
||||||
if (defined("MAIN_INFO_SIREN"))
|
// Web
|
||||||
{
|
if ($this->emetteur->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($this->emetteur->url);
|
||||||
$pdf->SetFont('Arial','',10);
|
|
||||||
$pdf->MultiCell(76, 5, "SIREN : ".$outputlangs->convToOutputCharset(MAIN_INFO_SIREN));
|
$pdf->SetFont('Arial','',9);
|
||||||
}
|
$pdf->SetXY(10,10);
|
||||||
|
$pdf->MultiCell(80,3, $carac_emetteur);
|
||||||
|
|
||||||
if (defined("FAC_PDF_INTITULE2"))
|
|
||||||
{
|
|
||||||
$pdf->SetXY(100,5);
|
|
||||||
$pdf->SetFont('Arial','B',14);
|
|
||||||
$pdf->SetTextColor(0,0,200);
|
|
||||||
$pdf->MultiCell(100, 10, $outputlangs->convToOutputCharset(FAC_PDF_INTITULE2), '' , 'R');
|
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
* Adresse Client
|
* Adresse Client
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -420,10 +420,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
|||||||
$pdf->MultiCell(100, 3, $langs->transnoentities("ErrorGoToModuleSetup"), 0, 'L');
|
$pdf->MultiCell(100, 3, $langs->transnoentities("ErrorGoToModuleSetup"), 0, 'L');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(defined("MAIN_INFO_SOCIETE_NOM") && FAC_PDF_SOCIETE_NOM)
|
else $pdf->MultiCell(100, 4, $this->emetteur->nom, 0, 'L');
|
||||||
{
|
|
||||||
$pdf->MultiCell(100, 4, MAIN_INFO_SOCIETE_NOM, 0, 'L');
|
|
||||||
}
|
|
||||||
|
|
||||||
$pdf->SetFont('Arial','B',13);
|
$pdf->SetFont('Arial','B',13);
|
||||||
$pdf->SetXY(100,$posy);
|
$pdf->SetXY(100,$posy);
|
||||||
@ -474,33 +471,25 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
|||||||
// Nom emetteur
|
// Nom emetteur
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$pdf->SetFont('Arial','B',11);
|
$pdf->SetFont('Arial','B',11);
|
||||||
if (defined("FAC_PDF_SOCIETE_NOM") && FAC_PDF_SOCIETE_NOM) $pdf->MultiCell(80, 4, FAC_PDF_SOCIETE_NOM, 0, 'L');
|
$pdf->MultiCell(80, 4, $outputlangs->convToOutputCharset($this->emetteur->nom), 0, 'L');
|
||||||
else $pdf->MultiCell(80, 4, $mysoc->nom, 0, 'L');
|
|
||||||
|
|
||||||
// Caracteristiques emetteur
|
// Caracteristiques emetteur
|
||||||
$carac_emetteur = '';
|
$carac_emetteur = '';
|
||||||
if (defined("FAC_PDF_ADRESSE") && FAC_PDF_ADRESSE) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).FAC_PDF_ADRESSE;
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->adresse);
|
||||||
else {
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->cp).' '.$outputlangs->convToOutputCharset($this->emetteur->ville);
|
||||||
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($mysoc->adresse);
|
|
||||||
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($mysoc->cp).' '.$outputlangs->convToOutputCharset($mysoc->ville);
|
|
||||||
}
|
|
||||||
$carac_emetteur .= "\n";
|
$carac_emetteur .= "\n";
|
||||||
// Tel
|
// Tel
|
||||||
if (defined("FAC_PDF_TEL") && FAC_PDF_TEL) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".FAC_PDF_TEL;
|
if ($this->emetteur->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($this->emetteur->tel);
|
||||||
elseif ($mysoc->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($mysoc->tel);
|
|
||||||
// Fax
|
// Fax
|
||||||
if (defined("FAC_PDF_FAX") && FAC_PDF_FAX) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".FAC_PDF_FAX;
|
if ($this->emetteur->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($this->emetteur->fax);
|
||||||
elseif ($mysoc->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($mysoc->fax);
|
|
||||||
// EMail
|
// EMail
|
||||||
if (defined("FAC_PDF_MEL") && FAC_PDF_MEL) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".FAC_PDF_MEL;
|
if ($this->emetteur->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($this->emetteur->email);
|
||||||
elseif ($mysoc->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($mysoc->email);
|
|
||||||
// Web
|
// Web
|
||||||
if (defined("FAC_PDF_WWW") && FAC_PDF_WWW) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".FAC_PDF_WWW;
|
if ($this->emetteur->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($this->emetteur->url);
|
||||||
elseif ($mysoc->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($mysoc->url);
|
|
||||||
|
|
||||||
$pdf->SetFont('Arial','',9);
|
$pdf->SetFont('Arial','',9);
|
||||||
$pdf->SetXY($this->marge_gauche+2,$posy+8);
|
$pdf->SetXY($this->marge_gauche+2,$posy+9);
|
||||||
$pdf->MultiCell(80,4, $carac_emetteur);
|
$pdf->MultiCell(80,3, $carac_emetteur);
|
||||||
|
|
||||||
// Client destinataire
|
// Client destinataire
|
||||||
$posy=42;
|
$posy=42;
|
||||||
|
|||||||
@ -879,29 +879,21 @@ class pdf_propale_azur extends ModelePDFPropales
|
|||||||
// Nom emetteur
|
// Nom emetteur
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$pdf->SetFont('Arial','B',11);
|
$pdf->SetFont('Arial','B',11);
|
||||||
if (defined("FAC_PDF_SOCIETE_NOM") && FAC_PDF_SOCIETE_NOM) $pdf->MultiCell(80, 4, FAC_PDF_SOCIETE_NOM, 0, 'L');
|
$pdf->MultiCell(80, 4, $outputlangs->convToOutputCharset($this->emetteur->nom), 0, 'L');
|
||||||
else $pdf->MultiCell(80, 4, $this->emetteur->nom, 0, 'L');
|
|
||||||
|
|
||||||
// Caractéristiques emetteur
|
// Caracteristiques emetteur
|
||||||
$carac_emetteur = '';
|
$carac_emetteur = '';
|
||||||
if (defined("FAC_PDF_ADRESSE") && FAC_PDF_ADRESSE) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).FAC_PDF_ADRESSE;
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->adresse);
|
||||||
else {
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->cp).' '.$outputlangs->convToOutputCharset($this->emetteur->ville);
|
||||||
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$this->emetteur->adresse;
|
|
||||||
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$this->emetteur->cp.' '.$this->emetteur->ville;
|
|
||||||
}
|
|
||||||
$carac_emetteur .= "\n";
|
$carac_emetteur .= "\n";
|
||||||
// Tel
|
// Tel
|
||||||
if (defined("FAC_PDF_TEL") && FAC_PDF_TEL) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".FAC_PDF_TEL;
|
if ($this->emetteur->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($this->emetteur->tel);
|
||||||
elseif ($this->emetteur->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($this->emetteur->tel);
|
|
||||||
// Fax
|
// Fax
|
||||||
if (defined("FAC_PDF_FAX") && FAC_PDF_FAX) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".FAC_PDF_FAX;
|
if ($this->emetteur->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($this->emetteur->fax);
|
||||||
elseif ($this->emetteur->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($this->emetteur->fax);
|
|
||||||
// EMail
|
// EMail
|
||||||
if (defined("FAC_PDF_MEL") && FAC_PDF_MEL) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".FAC_PDF_MEL;
|
if ($this->emetteur->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($this->emetteur->email);
|
||||||
elseif ($this->emetteur->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($this->emetteur->email);
|
|
||||||
// Web
|
// Web
|
||||||
if (defined("FAC_PDF_WWW") && FAC_PDF_WWW) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".FAC_PDF_WWW;
|
if ($this->emetteur->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($this->emetteur->url);
|
||||||
elseif ($this->emetteur->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($this->emetteur->url);
|
|
||||||
|
|
||||||
$pdf->SetFont('Arial','',9);
|
$pdf->SetFont('Arial','',9);
|
||||||
$pdf->SetXY($this->marge_gauche+2,$posy+8);
|
$pdf->SetXY($this->marge_gauche+2,$posy+8);
|
||||||
|
|||||||
@ -337,35 +337,27 @@ class pdf_propale_jaune extends ModelePDFPropales
|
|||||||
$pdf->_out('Q');
|
$pdf->_out('Q');
|
||||||
}
|
}
|
||||||
|
|
||||||
//print Content
|
$pdf->SetTextColor(0,0,0);
|
||||||
|
|
||||||
|
// Caracteristiques emetteur
|
||||||
|
$carac_emetteur = '';
|
||||||
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->adresse);
|
||||||
|
$carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->convToOutputCharset($this->emetteur->cp).' '.$outputlangs->convToOutputCharset($this->emetteur->ville);
|
||||||
|
$carac_emetteur .= "\n";
|
||||||
|
// Tel
|
||||||
|
if ($this->emetteur->tel) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($this->emetteur->tel);
|
||||||
|
// Fax
|
||||||
|
if ($this->emetteur->fax) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($this->emetteur->fax);
|
||||||
|
// EMail
|
||||||
|
if ($this->emetteur->email) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($this->emetteur->email);
|
||||||
|
// Web
|
||||||
|
if ($this->emetteur->url) $carac_emetteur .= ($carac_emetteur ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($this->emetteur->url);
|
||||||
|
|
||||||
|
$pdf->SetFont('Arial','',9);
|
||||||
$pdf->SetXY(12,42);
|
$pdf->SetXY(12,42);
|
||||||
if (defined("FAC_PDF_INTITULE"))
|
$pdf->MultiCell(80,3, $carac_emetteur);
|
||||||
{
|
|
||||||
$pdf->SetTextColor(0,0,200);
|
|
||||||
$pdf->SetFont('Arial','B',14);
|
|
||||||
$pdf->MultiCell(76, 8, $outputlangs->convToOutputCharset(FAC_PDF_INTITULE), 0, 'L');
|
|
||||||
}
|
|
||||||
|
|
||||||
$pdf->SetTextColor(70,70,170);
|
|
||||||
if (defined("FAC_PDF_ADRESSE"))
|
|
||||||
{
|
|
||||||
$pdf->SetX(12);
|
|
||||||
$pdf->SetFont('Arial','',12);
|
|
||||||
$pdf->MultiCell(76, 5, $outputlangs->convToOutputCharset(FAC_PDF_ADRESSE));
|
|
||||||
}
|
|
||||||
if (defined("FAC_PDF_TEL"))
|
|
||||||
{
|
|
||||||
$pdf->SetX(12);
|
|
||||||
$pdf->SetFont('Arial','',10);
|
|
||||||
$pdf->MultiCell(76, 5, $outputlangs->trans("Tel")." : ".$outputlangs->convToOutputCharset(FAC_PDF_TEL));
|
|
||||||
}
|
|
||||||
if (defined("MAIN_INFO_SIREN"))
|
|
||||||
{
|
|
||||||
$pdf->SetX(12);
|
|
||||||
$pdf->SetFont('Arial','',10);
|
|
||||||
$pdf->MultiCell(76, 5, $outputlangs->trans("SIREN")." : ".$outputlangs->convToOutputCharset(MAIN_INFO_SIREN));
|
|
||||||
}
|
|
||||||
$pdf->rect(10, 40, 80, 40);
|
$pdf->rect(10, 40, 80, 40);
|
||||||
|
|
||||||
$pdf->SetXY(10,5);
|
$pdf->SetXY(10,5);
|
||||||
|
|||||||
@ -739,7 +739,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
|||||||
|
|
||||||
$pdf->SetFont('Arial','',9);
|
$pdf->SetFont('Arial','',9);
|
||||||
$pdf->SetXY($this->marge_gauche+2,$posy+8);
|
$pdf->SetXY($this->marge_gauche+2,$posy+8);
|
||||||
$pdf->MultiCell(80,4, $carac_emetteur);
|
$pdf->MultiCell(80,3, $carac_emetteur);
|
||||||
|
|
||||||
// Client destinataire
|
// Client destinataire
|
||||||
$posy=42;
|
$posy=42;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user