Ajout onglet commentaires
This commit is contained in:
parent
5030c182ba
commit
22855eedda
@ -37,7 +37,7 @@ if ($cancel == $langs->trans("Cancel"))
|
||||
|
||||
if ($_GET["id"])
|
||||
{
|
||||
$soc = new Societe($db);
|
||||
$soc = new TelephonieClient($db);
|
||||
$result = $soc->fetch($_GET["id"], $user);
|
||||
|
||||
if (!$soc->perm_read)
|
||||
@ -83,6 +83,16 @@ if ($_GET["id"])
|
||||
$head[$h][1] = $langs->trans("Tarifs (".$row[0].")");
|
||||
$h++;
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/client/commentaires.php?id=".$soc->id;
|
||||
$head[$h][1] = $langs->trans("Commentaires");
|
||||
$num_comments = $soc->count_comment();
|
||||
if ($num_comments > 0)
|
||||
{
|
||||
$head[$h][1] = $langs->trans("Commentaires ($num_comments)");
|
||||
}
|
||||
$h++;
|
||||
|
||||
|
||||
dolibarr_fiche_head($head, $hselected, 'Client : '.$soc->nom);
|
||||
|
||||
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user