X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main.cgi;fp=httemplate%2Fview%2Fcust_main.cgi;h=637c015caa6994f9636f530a82b03ed51a5cf15f;hp=081b96bed7f827f4681d623fbc4670e39392e7fb;hb=d647e72f22abc6715b6597d17a68851409b53d0b;hpb=39fbd35d58ba6bedd6c8af1f4b0c25a166acf3c3 diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index 081b96bed..637c015ca 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -1,5 +1,6 @@ <& /elements/header.html, { 'title' => $title, + 'title_noescape' => $title_noescape, 'head' => $head, 'nobr' => 1, } @@ -169,12 +170,14 @@ function areyousure(href, message) { @@ -331,10 +334,20 @@ my $cust_main = qsearchs( { }); die "Customer not found!" unless $cust_main; -my $title = $cust_main->name; -$title = '('. $cust_main->display_custnum. ") $title" - if $conf->exists('cust_main-title-display_custnum'); -$title = mt("Customer:")." ".$title; +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 @agentnums = $curuser->agentnums; +if (scalar(@agentnums) > 1 ) { + $title = encode_entities($cust_main->agent->agent). " $title"; +} + +my $status = $cust_main->status_label; +$status .= ' (Cancelled)' if $cust_main->is_status_delay_cancel; +my $title_noescape = $title. ' ('. $status. ')'; +$title .= " ($status)"; #false laziness w/pref/pref.html and Conf.pm (cust_main-default_view) tie my %views, 'Tie::IxHash',
+ <& cust_main/contacts.html, $cust_main &> +
<& cust_main/misc.html, $cust_main &> -
<& cust_main/contacts.html, $cust_main &>
<& cust_main/billing.html, $cust_main &> -
<& cust_main/cust_payby.html, $cust_main &> +
+ <& cust_main/cust_payby.html, $cust_main &>