X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fcancel_cust.html;h=3259a03f6faafb6c3bbc6b02240abe2565a53751;hb=dfba562ff61f541ba7c75f2c02b32951b73aa002;hp=12c37ebe2df9ad52b683e9b3344ba7e80edbfef5;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2;p=freeside.git diff --git a/httemplate/misc/cancel_cust.html b/httemplate/misc/cancel_cust.html index 12c37ebe2..3259a03f6 100644 --- a/httemplate/misc/cancel_cust.html +++ b/httemplate/misc/cancel_cust.html @@ -1,32 +1,65 @@ -<% include('/elements/header-popup.html', 'Cancel customer' ) %> +<& /elements/header-popup.html, mt('Cancel customer') &> -<% include('/elements/error.html') %> +<& /elements/error.html &>
- -

Permanently delete all services and cancel this customer? - - <% $ban %> - -

- -<% ntable("#cccccc", 2) %> - -<% include('/elements/tr-select-reason.html', +

<% mt('Permanently delete all services and cancel this customer?') |h %> + + + + + + + + + + +
+ + <% mt('Cancel now') |h %>
+ + <% mt('Cancel on date: ') |h %> + <& /elements/input-date-field.html, { + 'name' => 'expire', + 'value' => time, + } &> +
+ +% if ( $cust_main->payby =~ /^(CARD|DCRD|CHEK|DCHK)$/ ) { +% my $ban = "Ban this customer's "; +% $ban .= 'credit card' if $cust_main->payby =~ /^(CARD|DCRD)$/; +% $ban .= 'ACH account' if $cust_main->payby =~ /^(CHEK|DCHK)$/; +

+ <% mt($ban) |h %> +% } + + +<& /elements/tr-select-reason.html, 'field' => 'reasonnum', 'reason_class' => 'C', 'cgi' => $cgi, 'control_button' => "document.getElementById('confirm_cancel_cust_button')", - ) -%> +&>

-          + +         +" onClick="parent.cClick();">

@@ -48,16 +81,5 @@ my $cust_main = qsearchs( { } ); die "No customer # $custnum" unless $cust_main; -my $ban = ''; -if ( $cust_main->payby =~ /^(CARD|DCRD|CHEK|DCHK)$/ ) { - $ban = '

'. - ' Ban this customer\'s '; - if ( $cust_main->payby =~ /^(CARD|DCRD)$/ ) { - $ban .= 'credit card'; - } elsif ( $cust_main->payby =~ /^(CHEK|DCHK)$/ ) { - $ban .= 'ACH account'; - } -} -