diff --git a/htdocs/societe.php b/htdocs/societe.php index d11d0fe824a..cb697d06695 100644 --- a/htdocs/societe.php +++ b/htdocs/societe.php @@ -280,7 +280,8 @@ if ($resql) print ''; print ''; print ''; - print ''; + // Type (customer/prospect/supplier) + print ''; print ''; print '  '; print ''; @@ -304,26 +305,19 @@ if ($resql) print "".$obj->idprof3."\n"; print "".$obj->idprof4."\n"; print ''; - if ($obj->client==1) + if ($obj->client==1 || $obj->client==3) { print "rowid."\">".$langs->trans("Customer")."\n"; } - elseif ($obj->client==2) + if ($obj->client == 3) print " / "; + if ($obj->client==2 || $obj->client==3) { print "rowid."\">".$langs->trans("Prospect")."\n"; } - else - { - print " "; - } - print ""; if ($obj->fournisseur) { - print ''.$langs->trans("Supplier").''; - } - else - { - print " "; + if ($obj->client) print " / "; + print ''.$langs->trans("Supplier").''; } print ''."\n";