diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php
index 81a370dc2b9..a6dec311d0d 100644
--- a/htdocs/societe/class/societe.class.php
+++ b/htdocs/societe/class/societe.class.php
@@ -2040,8 +2040,17 @@ class Societe extends CommonObject
}
if (! empty($this->country_code))
$label.= '
' . $langs->trans('Country') . ': '. $this->country_code;
- if (! empty($this->tva_intra))
+ if (! empty($this->tva_intra) || (! empty($conf->global->SOCIETE_SHOW_FIELD_IN_TOOLTIP) && strpos($conf->global->SOCIETE_SHOW_FIELD_IN_TOOLTIP, 'vatnumber') !== false))
$label.= '
' . $langs->trans('VATIntra') . ': '. $this->tva_intra;
+ if (! empty($conf->global->SOCIETE_SHOW_FIELD_IN_TOOLTIP))
+ {
+ if (strpos($conf->global->SOCIETE_SHOW_FIELD_IN_TOOLTIP, 'profid1') !== false) $label.= '
' . $langs->trans('ProfId1'.$this->country_code) . ': '. $this->idprof1;
+ if (strpos($conf->global->SOCIETE_SHOW_FIELD_IN_TOOLTIP, 'profid2') !== false) $label.= '
' . $langs->trans('ProfId2'.$this->country_code) . ': '. $this->idprof2;
+ if (strpos($conf->global->SOCIETE_SHOW_FIELD_IN_TOOLTIP, 'profid3') !== false) $label.= '
' . $langs->trans('ProfId3'.$this->country_code) . ': '. $this->idprof3;
+ if (strpos($conf->global->SOCIETE_SHOW_FIELD_IN_TOOLTIP, 'profid4') !== false) $label.= '
' . $langs->trans('ProfId4'.$this->country_code) . ': '. $this->idprof4;
+ if (strpos($conf->global->SOCIETE_SHOW_FIELD_IN_TOOLTIP, 'profid5') !== false) $label.= '
' . $langs->trans('ProfId5'.$this->country_code) . ': '. $this->idprof5;
+ if (strpos($conf->global->SOCIETE_SHOW_FIELD_IN_TOOLTIP, 'profid6') !== false) $label.= '
' . $langs->trans('ProfId6'.$this->country_code) . ': '. $this->idprof6;
+ }
if (! empty($this->code_client) && $this->client)
$label.= '
' . $langs->trans('CustomerCode') . ': '. $this->code_client;
if (! empty($this->code_fournisseur) && $this->fournisseur)