diff --git a/htdocs/societe/index.php b/htdocs/societe/index.php index d92a28a08f1..e10d1c88680 100644 --- a/htdocs/societe/index.php +++ b/htdocs/societe/index.php @@ -295,45 +295,26 @@ if ($result) $thirdparty_static->datem=$db->jdate($objp->datem); $thirdparty_static->status=$objp->status; $thirdparty_static->canvas=$objp->canvas; - //print $thirdparty_static->getNomUrl(1); - //print "\n"; + print $thirdparty_static->getNomUrl(1); + print "\n"; // Type - //print ''; + print ''; if ($thirdparty_static->client==1 || $thirdparty_static->client==3) { - print $thirdparty_static->getNomUrl(1, 'customer'); - print "\n"; - // Type - print ''; - print $langs->trans("Customer"); - } - if ($thirdparty_static->client == 3 && empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) { - print $thirdparty_static->getNomUrl(1); - print "\n"; - // Type - print ''; - print " / "; + $thirdparty_static->name=$langs->trans("Customer"); + print $thirdparty_static->getNomUrl(0,'customer'); } + if ($thirdparty_static->client == 3 && empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) print " / "; if (($thirdparty_static->client==2 || $thirdparty_static->client==3) && empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) { - print $thirdparty_static->getNomUrl(1, 'prospect'); - print "\n"; - // Type - print ''; - print $langs->trans("Prospect"); + $thirdparty_static->name=$langs->trans("Prospect"); + print $thirdparty_static->getNomUrl(0,'prospect'); } if (! empty($conf->fournisseur->enabled) && $thirdparty_static->fournisseur) { - if (! $thirdparty_static->client) { - print $thirdparty_static->getNomUrl(1, 'supplier'); - print "\n"; - print ''; - print $langs->trans("Supplier"); - } else { - // Type - print " / "; - print $langs->trans("Supplier"); - } + if ($thirdparty_static->client) print " / "; + $thirdparty_static->name=$langs->trans("Supplier"); + print $thirdparty_static->getNomUrl(0,'supplier'); } print ''; // Last modified date