Fix: fetch_client is deprecated

This commit is contained in:
Regis Houssin
2010-08-06 13:56:25 +00:00
parent 8e57affa6e
commit aa62559812
35 changed files with 66 additions and 75 deletions

View File

@@ -905,7 +905,7 @@ class pdf_einstein extends ModelePDFCommandes
$pdf->SetFont('Arial','',8);
$pdf->SetXY(102,$posy-5);
$pdf->MultiCell(80, 4, $outputlangs->transnoentities("BillTo").":");
$object->fetch_client();
$object->fetch_thirdparty();
// Cadre client destinataire
$pdf->rect(100, $posy, 100, $hautcadre);

View File

@@ -95,7 +95,7 @@ Class pdf_expedition_merou extends ModelePdfExpedition
//Verification de la configuration
if ($conf->expedition->dir_output."/sending")
{
$object->fetch_client();
$object->fetch_thirdparty();
//Creation de l expediteur
$this->expediteur = $mysoc;
@@ -478,7 +478,7 @@ Class pdf_expedition_merou extends ModelePdfExpedition
$blSocY = 1;
$pdf->Rect($blExpX, $Yoff, $blW, 20);
$object->fetch_client();
$object->fetch_thirdparty();
// If SHIPPING contact defined on order, we use it
$usecontact=false;

View File

@@ -230,7 +230,7 @@ Class pdf_expedition_rouget extends ModelePdfExpedition
{
global $user,$conf,$langs;
$object->fetch_client();
$object->fetch_thirdparty();
if (! is_object($outputlangs)) $outputlangs=$langs;
// Force output charset to ISO, because, FPDF expect text encoded in ISO

View File

@@ -225,7 +225,7 @@ function facture_meta_create($db, $facid, $message="")
$fac = new Facture($db,"",$facid);
$fac->fetch($facid);
$fac->fetch_client();
$fac->fetch_thirdparty();
if ($conf->facture->dir_output)
{

View File

@@ -132,7 +132,7 @@ class pdf_crabe extends ModelePDFFactures
$ret=$fac->fetch($id);
}
$fac->fetch_client();
$fac->fetch_thirdparty();
$deja_regle = $fac->getSommePaiement();
$amount_credit_notes_included = $fac->getSumCreditNotesUsed();

View File

@@ -128,7 +128,7 @@ class pdf_oursin extends ModelePDFFactures
$fac = new Facture($this->db);
$ret=$fac->fetch($id);
}
$fac->fetch_client();
$fac->fetch_thirdparty();
$deja_regle = $fac->getSommePaiement();
$amount_credit_notes_included = $fac->getSumCreditNotesUsed();

View File

@@ -238,7 +238,7 @@ class pdf_soleil extends ModelePDFFicheinter
// Client destinataire
$pdf->SetTextColor(0,0,0);
$pdf->SetFont('Arial','B',12);
$fichinter->fetch_client();
$fichinter->fetch_thirdparty();
$pdf->SetXY(102,42);
$pdf->MultiCell(86,5, $outputlangs->convToOutputCharset($carac_client_name));
$pdf->SetFont('Arial','B',11);

View File

@@ -110,7 +110,7 @@ class pdf_sirocco extends ModelePDFDeliveryOrder
}
}
$object->fetch_client();
$object->fetch_thirdparty();
$nblignes = sizeof($object->lignes);

View File

@@ -132,7 +132,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder
}
}
$object->fetch_client();
$object->fetch_thirdparty();
$nblignes = sizeof($object->lignes);

View File

@@ -452,7 +452,7 @@ class pdf_baleine extends ModelePDFProjects
// Cadre client destinataire
$pdf->rect(100, $posy, 100, $hautcadre);
$object->fetch_client();
$object->fetch_thirdparty();
// Recipient name
if (! empty($usecontact))

View File

@@ -130,7 +130,7 @@ class pdf_propale_azur extends ModelePDFPropales
$propale = new Propal($this->db,"",$id);
$ret=$propale->fetch($id);
}
$propale->fetch_client();
$propale->fetch_thirdparty();
$deja_regle = "";
// Definition de $dir et $file

View File

@@ -105,7 +105,7 @@ class pdf_propale_jaune extends ModelePDFPropales
$propale = new Propal($this->db,"",$id);
$ret=$propale->fetch($id);
}
$propale->fetch_client();
$propale->fetch_thirdparty();
$deja_regle = "";
// Definition de $dir et $file