summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_main.cgi
diff options
context:
space:
mode:
authorivan <ivan>2010-08-13 19:26:22 +0000
committerivan <ivan>2010-08-13 19:26:22 +0000
commit955c17771c7aa05a2609309809809be37f4c8267 (patch)
tree8002084483cd7ec729f42e7ecd2a0b2320945fae /httemplate/view/cust_main.cgi
parent938615d6374c8e868647b88e3aa27c15e942b8ed (diff)
add cust_main-title-display_custnum, RT#9621
Diffstat (limited to 'httemplate/view/cust_main.cgi')
-rwxr-xr-xhttemplate/view/cust_main.cgi7
1 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index 0b6148da0..cb325e21d 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -1,5 +1,5 @@
<% include('/elements/header.html', {
- 'title' => "Customer: ". $cust_main->name,
+ 'title' => $title,
'nobr' => 1,
})
%>
@@ -265,6 +265,11 @@ 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 = "Customer: $title";
+
#false laziness w/pref/pref.html and Conf.pm (cust_main-default_view)
tie my %views, 'Tie::IxHash',
'Basics' => 'basics',