diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-07-10 21:42:48 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-07-10 21:42:48 -0700 |
commit | 4d6b0f491ec1ef97c38c3eab66f6890e7ed30b82 (patch) | |
tree | 6ffa6ca5629bd2da8323a05b77768701886317ec /httemplate/view | |
parent | f597b34e46bf7b8a4f9e9f0cb22b62d4cd5b55d7 (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"; } |