Skip to content
Snippets Groups Projects
Commit 47d423aa authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Minor fix into intervention card

parent 3a11a461
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ class pdf_soleil extends ModelePDFFicheinter
$this->option_modereg = 0; // Affiche mode reglement
$this->option_condreg = 0; // Affiche conditions reglement
$this->option_codeproduitservice = 0; // Affiche code produit-service
$this->option_multilang = 0; // Dispo en plusieurs langues
$this->option_multilang = 1; // Dispo en plusieurs langues
$this->option_draft_watermark = 1; //Support add of a watermark on drafts
// Get source company
......
......@@ -1840,12 +1840,18 @@ class Societe extends CommonObject
$nump = $this->db->num_rows($resql);
if ($nump)
{
$sepa="("; $sepb=")";
if ($mode == 'email')
{
$sepa="<"; $sepb=">";
}
$i = 0;
while ($i < $nump)
{
$obj = $this->db->fetch_object($resql);
if ($mode == 'email') $property=$obj->email;
else if ($mode == 'mobile') $property=$obj->phone_mobile;
else $property=$obj->$mode;
// Show all contact. If hidedisabled is 1, showonly contacts with status = 1
if ($obj->statut == 1 || empty($hidedisabled))
......@@ -1858,11 +1864,11 @@ class Societe extends CommonObject
if (!empty($obj->poste))
{
$contact_property[$obj->rowid] = trim(dolGetFirstLastname($obj->firstname,$obj->lastname))."(".$obj->poste.")"." &lt;".$property."&gt;";
$contact_property[$obj->rowid] = trim(dolGetFirstLastname($obj->firstname,$obj->lastname)).($obj->poste?" - ".$obj->poste:"").(($mode != 'poste' && $property)?" ".$sepa.$property.$sepb:'');
}
else
{
$contact_property[$obj->rowid] = trim(dolGetFirstLastname($obj->firstname,$obj->lastname))." &lt;".$property."&gt;";
$contact_property[$obj->rowid] = trim(dolGetFirstLastname($obj->firstname,$obj->lastname)).(($mode != 'poste' && $property)?" ".$sepa.$property.$sepb:'');
}
}
$i++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment