From 5376c66e2e5c1849763777f9d44ad013405c1d9e Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Fri, 10 Jul 2015 21:42:43 -0700 Subject: include agent and restore cust-level status in small_custview --- httemplate/view/cust_main.cgi | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'httemplate/view') 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"; } -- cgit v1.2.1