diff --git a/htdocs/includes/modules/commande/pdf_einstein.modules.php b/htdocs/includes/modules/commande/pdf_einstein.modules.php index 123a49f4de7..82508d6484f 100644 --- a/htdocs/includes/modules/commande/pdf_einstein.modules.php +++ b/htdocs/includes/modules/commande/pdf_einstein.modules.php @@ -916,7 +916,7 @@ class pdf_einstein extends ModelePDFCommandes $pdf->MultiCell(96,4, $object->client->nom, 0, 'L'); // Nom client - $carac_client = "\n".$object->contact->getFullName($outputlangs,1); + $carac_client = "\n".$object->contact->getFullName($outputlangs,1,1); // Caractéristiques client $carac_client.="\n".$object->contact->adresse; @@ -941,7 +941,7 @@ class pdf_einstein extends ModelePDFCommandes // On vérifie si c'est une société ou un particulier if( !preg_match('#'.$object->contact->getFullName($outputlangs,1).'#isU',$object->client->nom) ) { - $carac_client .= "\n".$object->contact->getFullName($outputlangs,1); + $carac_client .= "\n".$object->contact->getFullName($outputlangs,1,1); } } diff --git a/htdocs/includes/modules/facture/pdf_crabe.modules.php b/htdocs/includes/modules/facture/pdf_crabe.modules.php index bd37c0d22f0..e5e43f1a870 100644 --- a/htdocs/includes/modules/facture/pdf_crabe.modules.php +++ b/htdocs/includes/modules/facture/pdf_crabe.modules.php @@ -1109,7 +1109,7 @@ class pdf_crabe extends ModelePDFFactures $pdf->MultiCell(96,4, $object->client->nom, 0, 'L'); // Nom client - $carac_client = "\n".$object->contact->getFullName($outputlangs,1); + $carac_client = "\n".$object->contact->getFullName($outputlangs,1,1); // Caractéristiques client $carac_client.="\n".$object->contact->adresse; @@ -1135,7 +1135,7 @@ class pdf_crabe extends ModelePDFFactures // On vérifie si c'est une société ou un particulier if( !preg_match('#'.$object->contact->getFullName($outputlangs,1).'#isU',$object->client->nom) ) { - $carac_client .= "\n".$object->contact->getFullName($outputlangs,1); + $carac_client .= "\n".$object->contact->getFullName($outputlangs,1,1); } } diff --git a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php index 757b58fb559..3a0972c337f 100644 --- a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php +++ b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php @@ -942,7 +942,7 @@ class pdf_propale_azur extends ModelePDFPropales $pdf->MultiCell(96,4, $object->client->nom, 0, 'L'); // Nom client - $carac_client = "\n".$object->contact->getFullName($outputlangs,1); + $carac_client = "\n".$object->contact->getFullName($outputlangs,1,1); // Caractéristiques client $carac_client.="\n".$object->contact->adresse; @@ -968,7 +968,7 @@ class pdf_propale_azur extends ModelePDFPropales // On vérifie si c'est une société ou un particulier if( !preg_match('#'.$object->contact->getFullName($outputlangs,1).'#isU',$object->client->nom) ) { - $carac_client .= "\n".$object->contact->getFullName($outputlangs,1); + $carac_client .= "\n".$object->contact->getFullName($outputlangs,1,1); } }