summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_main.cgi
diff options
context:
space:
mode:
authorivan <ivan>2001-09-21 03:47:26 +0000
committerivan <ivan>2001-09-21 03:47:26 +0000
commit6e66ba42e0a4ddd87e1491ad23a8fb4de0241ffd (patch)
tree7e2476f96232f0dcb3ce2f9eaf86c1a723dd837e /httemplate/view/cust_main.cgi
parentbb5702532b602019ca68c7b15f630cd1109192d4 (diff)
show company and name (instead of just company) for referring customers that
have a company
Diffstat (limited to 'httemplate/view/cust_main.cgi')
-rwxr-xr-xhttemplate/view/cust_main.cgi8
1 files changed, 6 insertions, 2 deletions
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index 6df28c844..650c6cfeb 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -1,5 +1,5 @@
<%
-#<!-- $Id: cust_main.cgi,v 1.11 2001-09-16 12:45:35 ivan Exp $ -->
+#<!-- $Id: cust_main.cgi,v 1.12 2001-09-21 03:47:26 ivan Exp $ -->
use strict;
use vars qw ( $cgi $query $custnum $cust_main $hashref $agent $referral
@@ -189,7 +189,11 @@ print '<TD VALIGN="top">';
$cust_main->referral_custnum. '">'.
$cust_main->referral_custnum. ': '.
( $referring_cust_main->company
- || $referring_cust_main->last. ', '. $referring_cust_main->first ).
+ ? $referring_cust_main->company. ' ('.
+ $referring_cust_main->last. ', '. $referring_cust_main->first.
+ ')'
+ : $referring_cust_main->last. ', '. $referring_cust_main->first
+ ).
'</A>';
}
print '</TD></TR>';