mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
T966-develop : Put the poste of the contact in the list
In the list of contact when we send a mail,i added the post of person in () after the name htdocs/commande/fiche.php?id=481&action=presend&mode=init
This commit is contained in:
@@ -1581,8 +1581,7 @@ class Societe extends CommonObject
|
||||
$contact_property = array();
|
||||
|
||||
|
||||
|
||||
$sql = "SELECT rowid, email, statut, phone_mobile, lastname, firstname";
|
||||
$sql = "SELECT rowid, email, phone_mobile, lastname, poste, firstname";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."socpeople";
|
||||
$sql.= " WHERE fk_soc = '".$this->id."'";
|
||||
|
||||
@@ -1604,6 +1603,12 @@ class Societe extends CommonObject
|
||||
{
|
||||
$contact_property[$obj->rowid] = trim(dolGetFirstLastname($obj->firstname,$obj->lastname))." <".$property.">";
|
||||
|
||||
if(!empty($obj->poste)){
|
||||
$contact_property[$obj->rowid] = trim(dolGetFirstLastname($obj->firstname,$obj->lastname))."(".$obj->poste.")"." <".$property.">";
|
||||
}
|
||||
else
|
||||
{
|
||||
$contact_property[$obj->rowid] = trim(dolGetFirstLastname($obj->firstname,$obj->lastname))." <".$property.">";
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user