Use contact if defined by default for address instead of third party.

This commit is contained in:
Laurent Destailleur
2009-06-14 17:48:08 +00:00
parent 8bb947486a
commit 3465ecad0f
11 changed files with 91 additions and 34 deletions

View File

@@ -827,15 +827,15 @@ class pdf_einstein extends ModelePDFCommandes
// If CUSTOMER contact defined on invoice, we use it
$usecontact=false;
if ($conf->global->COMMANDE_USE_CUSTOMER_CONTACT_AS_RECIPIENT)
{
//if ($conf->global->COMMANDE_USE_CUSTOMER_CONTACT_AS_RECIPIENT)
//{
$arrayidcontact=$object->getIdContact('external','CUSTOMER');
if (sizeof($arrayidcontact) > 0)
{
$usecontact=true;
$result=$object->fetch_contact($arrayidcontact[0]);
}
}
//}
if ($usecontact)
{