Fix: Crazy change

This commit is contained in:
Laurent Destailleur 2015-01-31 22:29:31 +01:00
parent edcf39cd58
commit 7501e09738

View File

@ -295,45 +295,26 @@ if ($result)
$thirdparty_static->datem=$db->jdate($objp->datem); $thirdparty_static->datem=$db->jdate($objp->datem);
$thirdparty_static->status=$objp->status; $thirdparty_static->status=$objp->status;
$thirdparty_static->canvas=$objp->canvas; $thirdparty_static->canvas=$objp->canvas;
//print $thirdparty_static->getNomUrl(1);
//print "</td>\n";
// Type
//print '<td align="center">';
if ($thirdparty_static->client==1 || $thirdparty_static->client==3)
{
print $thirdparty_static->getNomUrl(1, 'customer');
print "</td>\n";
// Type
print '<td align="center">';
print $langs->trans("Customer");
}
if ($thirdparty_static->client == 3 && empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) {
print $thirdparty_static->getNomUrl(1); print $thirdparty_static->getNomUrl(1);
print "</td>\n"; print "</td>\n";
// Type // Type
print '<td align="center">'; print '<td align="center">';
print " / "; if ($thirdparty_static->client==1 || $thirdparty_static->client==3)
{
$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)) if (($thirdparty_static->client==2 || $thirdparty_static->client==3) && empty($conf->global->SOCIETE_DISABLE_PROSPECTS))
{ {
print $thirdparty_static->getNomUrl(1, 'prospect'); $thirdparty_static->name=$langs->trans("Prospect");
print "</td>\n"; print $thirdparty_static->getNomUrl(0,'prospect');
// Type
print '<td align="center">';
print $langs->trans("Prospect");
} }
if (! empty($conf->fournisseur->enabled) && $thirdparty_static->fournisseur) if (! empty($conf->fournisseur->enabled) && $thirdparty_static->fournisseur)
{ {
if (! $thirdparty_static->client) { if ($thirdparty_static->client) print " / ";
print $thirdparty_static->getNomUrl(1, 'supplier'); $thirdparty_static->name=$langs->trans("Supplier");
print "</td>\n"; print $thirdparty_static->getNomUrl(0,'supplier');
print '<td align="center">';
print $langs->trans("Supplier");
} else {
// Type
print " / ";
print $langs->trans("Supplier");
}
} }
print '</td>'; print '</td>';
// Last modified date // Last modified date