diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-07-10 21:42:43 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-07-10 21:42:43 -0700 |
commit | 5376c66e2e5c1849763777f9d44ad013405c1d9e (patch) | |
tree | 58f026cf6d44f2b84ebb1f24a0a83308948b2ce1 /httemplate/view | |
parent | e9827319f740628016763ce99fc424df30369eea (diff) |
include agent and restore cust-level status in small_custview
Diffstat (limited to 'httemplate/view')
-rwxr-xr-x | httemplate/view/cust_main.cgi | 9 |
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"; } |