MAIN_ADD_SALE_REP_SIGNATURE_IN_NOTE does not works as it needs the add

contact manually. Quick hack added to use the creator instead.
This commit is contained in:
Laurent Destailleur 2016-11-23 11:50:01 +01:00
parent da92be1a9f
commit 52fac193ad

View File

@ -374,6 +374,14 @@ class pdf_azur extends ModelePDFPropales
if (! empty($salerepobj->signature)) $notetoshow=dol_concatdesc($notetoshow, $salerepobj->signature);
}
}
if (! empty($conf->global->MAIN_ADD_CREATOR_IN_NOTE) && $object->user_author_id > 0)
{
$tmpuser=new User($this->db);
$tmpuser->fetch($object->user_author_id);
$notetoshow.='Affaire suivi par '.$tmpuser->getFullName($langs);
if ($tmpuser->email) $notetoshow.=', Mail: '.$tmpuser->email;
if ($tmpuser->office_phone) $notetoshow.=', Tel: '.$tmpuser->office_phone;
}
if ($notetoshow)
{
$tab_top = 88 + $height_incoterms;