X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main.cgi;h=3ca3d264fea6f09a7d0471859164d416a6954a0e;hb=7cd35e039f0339dc115e386c07174957d9a4ee06;hp=be0100fb3cf8d167a7cc45e62e5945b7fe8f3b75;hpb=1daf1a670d3cdfb307271fb7c7c98c83fb1fb464;p=freeside.git diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index be0100fb3..3ca3d264f 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -93,7 +93,7 @@ function areyousure(href, message) { % if ( $curuser->access_right('Merge customer') % and ( scalar($cust_main->ncancelled_pkgs) -% || $conf->exists('deletecustomers') +% # || we start supporting payment info merge again in some way % ) % ) % { @@ -108,12 +108,6 @@ function areyousure(href, message) { &> | % } -% if ( $conf->exists('deletecustomers') -% && $curuser->access_right('Delete customer') -% ) { - <% mt('Delete this customer') |h %> | -% } - % unless ( $conf->exists('disable_customer_referrals') ) { <% mt('Refer a new customer') |h %> | <% mt('View this customer\'s referrals') |h %> @@ -131,9 +125,10 @@ function areyousure(href, message) { % % my $email_link = ($cust_main->invoicing_list_emailonly) && % include('/elements/email-link.html', -% 'table' => 'cust_main', -% 'search_hash' => { 'custnum' => $custnum }, -% 'label' => 'Email a notice to this customer', +% 'table' => 'cust_main', +% 'search_hash' => { 'custnum' => $custnum }, +% 'agent_virt_agentnum' => $cust_main->agentnum, +% 'label' => 'Email a notice to this customer', % ); % if ( $email_link and $br ) { | @@ -153,7 +148,6 @@ function areyousure(href, message) { % if ( $br ) {

% } - %my $signupurl = $conf->config('signupurl'); %if ( $signupurl ) { @@ -162,11 +156,6 @@ function areyousure(href, message) {

% } -%if ( $conf->exists('maestro-status_test') ) { - <% mt('Test maestro status') |h %> -

-% } - @@ -276,6 +265,16 @@ function areyousure(href, message) { % } +% if ( $view eq 'appointments' || $view eq 'jumbo' ) { + +% if ( $conf->config('ticket_system') +% && $curuser->access_right('View appointments') ) { + <& cust_main/appointments.html, $cust_main &> +% } +

+ +% } + % if ( $view eq 'jumbo' ) { #XXX enable me && $curuser->access_right('View customer packages') { <% mt('Packages') |h %>
@@ -352,12 +351,15 @@ $title = mt("Customer:")." ".$title; #false laziness w/pref/pref.html and Conf.pm (cust_main-default_view) tie my %views, 'Tie::IxHash', - emt('Basics') => 'basics', - emt('Notes') => 'notes', #notes and files? + emt('Basics') => 'basics', + emt('Notes') => 'notes', #notes and files? ; -$views{emt('Tickets')} = 'tickets' - if $conf->config('ticket_system'); -$views{emt('Packages')} = 'packages'; +if ( $conf->config('ticket_system') ) { + $views{emt('Tickets')} = 'tickets'; + $views{emt('Appointments')} = 'appointments' + if $curuser->access_right('View appointments'); +} +$views{emt('Packages')} = 'packages'; $views{emt('Payment History')} = 'payment_history' unless $conf->config('payby-default' eq 'HIDE'); $views{emt('Change History')} = 'change_history'