mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-05 16:42:53 +01:00
Fix: fetch_client is deprecated
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -110,7 +110,7 @@ class pdf_sirocco extends ModelePDFDeliveryOrder
|
||||
}
|
||||
}
|
||||
|
||||
$object->fetch_client();
|
||||
$object->fetch_thirdparty();
|
||||
|
||||
$nblignes = sizeof($object->lignes);
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
||||
}
|
||||
}
|
||||
|
||||
$object->fetch_client();
|
||||
$object->fetch_thirdparty();
|
||||
|
||||
$nblignes = sizeof($object->lignes);
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user