From 09c188734779396a9310e1cdcd0c8c2c68f3cf32 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 6 Jan 2010 21:28:24 +0000 Subject: [PATCH] Third party can be both customer and prospect --- htdocs/societe.php | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) 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";