X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fview%2Fcust_main.cgi;h=e6db0a6c1ec7bfd32e40dc0f08450712cfa10bd9;hb=6cc42813cd4e39154b2589c315e1271fa6b43ff1;hp=a196c7510ee436d108bc877e99496e53661c715f;hpb=90d8aaced90a89974109de6a016a62bee4a7457c;p=freeside.git
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index a196c7510..e6db0a6c1 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,
})
%>
@@ -57,12 +57,29 @@ function areyousure(href, message) {
'color' => '#ff0000',
'cust_main' => $cust_main,
'width' => 616, #make room for reasons
+ 'height' => 366,
}
)
%> |
% }
+% if ( $curuser->access_right('Merge customer') ) {
+
+ <% include( '/elements/popup_link-cust_main.html',
+ { 'action' => $p. 'misc/merge_cust.html',
+ 'label' => 'Merge this customer',
+ 'actionlabel' => 'Merge customer',
+ #'color' => '#ff0000',
+ 'cust_main' => $cust_main,
+ 'width' => 480,
+ 'height' => 192,
+ }
+ )
+ %> |
+
+% }
+
% if ( $conf->exists('deletecustomers')
% && $curuser->access_right('Delete customer')
% ) {
@@ -76,20 +93,37 @@ function areyousure(href, message) {
+% my $br = 0;
% if ( $curuser->access_right('Billing event reports')
% || $curuser->access_right('View customer billing events')
% ) {
-
+% $br=1;
View billing events for this customer
-
+% }
+
+% if ( $conf->config('cust_main-external_links') ) {
+ <% $br++ ? ' | ' : '' %>
+% my @links = split(/\n/, $conf->config('menu-prepend_links'));
+% foreach my $link (@links) {
+% $link =~ /^\s*(\S+)\s+(.*?)(\s*\(([^\)]*)\))?$/ or next;
+% my($url, $label, $alt) = ($1, $2, $4);
+ <% $label |h %>
+% }
+% }
+% if ( $br ) {
+
% }
+%doc>
%my $signupurl = $conf->config('signupurl');
%if ( $signupurl ) {
This customer's signup URL: <% $signupurl %>?ref=<% $custnum %>
% }
+%if ( $conf->exists('maestro-status_test') ) {
+ Test maestro status
+% }