summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_main.cgi
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-07-10 21:42:43 -0700
committerIvan Kohler <ivan@freeside.biz>2015-07-10 21:42:43 -0700
commit5376c66e2e5c1849763777f9d44ad013405c1d9e (patch)
tree58f026cf6d44f2b84ebb1f24a0a83308948b2ce1 /httemplate/view/cust_main.cgi
parente9827319f740628016763ce99fc424df30369eea (diff)
include agent and restore cust-level status in small_custview
Diffstat (limited to 'httemplate/view/cust_main.cgi')
-rwxr-xr-xhttemplate/view/cust_main.cgi9
1 files changed, 3 insertions, 6 deletions
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index 233c496ac..95cb5da7c 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -220,13 +220,10 @@ my $cust_main = qsearchs( {
});
die "Customer not found!" unless $cust_main;
-my $title = encode_entities($cust_main->name);
-$title = '#'. $cust_main->display_custnum. " $title";
-# if $conf->exists('cust_main-title-display_custnum');
-$title = mt("Customer")." ".$title;
+my $title = mt("Customer").' #'. $cust_main->display_custnum. ': '.
+ encode_entities($cust_main->name);
-my @agentnums = $curuser->agentnums;
-if (scalar(@agentnums) > 1 ) {
+if ( $curuser->num_agents ) {
$title = encode_entities($cust_main->agent->agent). " $title";
}