X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fbilling.html;h=f2d6271d08258c8e2483da8245418a516505a4d3;hb=3d62ec9362d0b22c17a17da6197f8b2fc219a54e;hp=d1219821108849a5b5de14a3b81b270d020461c4;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index d12198211..f2d6271d0 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -1,5 +1,4 @@ %if ( $payby_default eq 'HIDE' ) { -% % $cust_main->payby('BILL') unless $cust_main->payby; % my $payby = $cust_main->payby; @@ -35,11 +34,11 @@ % % my $r = qq!* !; -
Billing information +
<% mt('Billing information') |h %> <% &ntable("#cccccc") %> - <%$r%>Billing type + <%$r%><% mt('Billing type') |h %> - <% include('/elements/init_overlib.html') %> + <& /elements/init_overlib.html &> % my $payby = $cust_main->payby; % my $paytype = $cust_main->paytype; % my( $account, $aba ) = split('@', $payinfo); +% my $branch = ''; +% ($branch,$aba) = split('\.',$aba) if $conf->exists('cust_main-require-bank-branch'); % % my $disabled = 'DISABLED style="background-color: #dddddd"'; % my $text_disabled = 'style="color: #999999"'; @@ -112,16 +136,40 @@ % $text_disabled = 'style="color: #000000";' % } % +% my $disable_payauto = $conf->exists('disable_payauto_default'); +% my $CARD_payauto_checked = $payby eq 'DCRD' ? '' +% : $payby eq 'CARD' ? 'CHECKED' +% : $disable_payauto ? '' : 'CHECKED'; +% my $CHEK_payauto_checked = $payby eq 'DCHK' ? '' +% : $payby eq 'CHEK' ? 'CHECKED' +% : $disable_payauto ? '' : 'CHECKED'; +% +% sub billday_options { +% my $curr_value = shift; +% my $ret = ''; +% for my $billday ( 1 .. 28 ) { +% my $sel = ''; +% $sel = "SELECTED='SELECTED'" if $curr_value == $billday; +% $ret .= ""; +% } +% $ret; +% } +% +% my $card_billday_style = $payby eq 'CARD' ? '' : 'style="color: #999999"'; +% my $chek_billday_style = $payby eq 'CHEK' ? '' : 'style="color: #999999"'; +% my $card_billday_select_disabled = $payby eq 'CARD' ? '' : 'DISABLED'; +% my $chek_billday_select_disabled = $payby eq 'CHEK' ? '' : 'DISABLED'; +% % my %payby = ( % % 'CARD' => % % ''. % -% qq!!. +% qq!!. % qq!!. % -% qq!!. +% qq!!. % ''. % -% qq!!. % '!. +% qq!!. % '!. % -% qq!!. +% qq!!. % qq!!. % -% qq!'. +% qq!'. +% +% ( $conf->exists('cust_main-select-billday') ? +% qq!! +% : '' +% ). % % '
${r}Card number
${r}!.emt('Card number').qq!
${r}Expiration
${r}!.emt('Expiration').qq! '. % % include('/elements/select-month_year.html', @@ -132,14 +180,13 @@ % % '
CVV2 !. +% qq!
!.emt('CVV2').qq! !. % -% qq!(help)!. +% qq!(!.emt('help').qq!)!. % qq!'. % -% -% qq!
Start date
!.emt('Start date').qq! '. % % include('/elements/select-month_year.html', @@ -157,13 +204,23 @@ % ) % ). % -% qq! or Issue number !. +% qq!!.emt('or Issue number').qq! !. % '
${r}Exact name on card
${r}!.emt('Exact name on card').qq!
Charge future payments to this card automatically
!. +% qq! !. +% emt('Charge future payments to this [_1] automatically','credit card').'
+% Charge on this day of each month   +%
', % @@ -171,27 +228,36 @@ % % ''. % -% qq!!. +% qq!!. % qq!'. -% qq!!. % -% qq!!. -% qq!!. +% ( $conf->exists('echeck-no_routing') +% ? '' +% : +% qq!!. +% qq!! +% ). % % qq!!. % qq!!. % -% qq!!. +% ( $conf->exists('cust_main-require-bank-branch') ? +% qq!! : '' ). +% +% qq!!. % qq!!. % ( $conf->exists('show_bankstate') ? % qq!!. % qq!'. +% qq!'. % -% ''. -% ''. -% ''. +% ( $conf->exists('cust_main-select-billday') ? +% qq!! +% : '' +% ). % % '
${r}Account number
${r}!.emt('Account number').qq! Type!.emt('Type').qq!
${r}ABA/Routing number !. -% qq!(help)!. -% qq!
${r}!.emt('ABA/Routing number').qq! !. +% qq!(!.emt('help').qq!)!. +% qq!
${r}Bank name
$r !.emt('Branch number').qq! +%
${r}!.emt('Bank name').qq!
$paystate_label!. % include('/elements/select-state.html', -% 'empty' => '(choose)', +% 'empty' => emt('(choose)'), % 'state' => $cust_main->paystate, % 'country' => $cust_main->country, % 'prefix' => 'CHEK_pay', @@ -201,11 +267,17 @@ % ). % % -% qq!
Charge future payments to this electronic check automatically
!. +% qq! !. +% emt('Charge future payments to this [_1] automatically','electronic check').'
 
 
 
+% Charge on this day of each month   +%
', % @@ -213,7 +285,7 @@ % % ''. % -% qq!!. +% qq!!. % qq!!. % % qq!!. @@ -233,13 +305,13 @@ % % '
${r}Phone number
${r}!.emt('Phone number').qq!
'. % -% qq!!. +% qq!!. % qq!!. % % qq!!. % qq!!. % -% qq!!. +% qq!!. % qq!!. % % ''. @@ -254,10 +326,10 @@ % % '
P.O.
!.emt('P.O.').qq!
Attention
!.emt('Attention').qq!
 
'. % -% qq!!. +% qq!!. % qq!!. % -% qq!!. +% qq!!. % ' @@ -394,31 +466,33 @@ ? 'CHECKED' : '' - %>> Fax invoice + %>> <% mt('Fax invoice') |h %> % } +% unless ( $conf->exists('cust-email-high-visibility')) { +% } - + + - + % if ( $conf->exists('voip-cust_cdr_spools') ) { - + % } else { @@ -440,7 +514,7 @@ function toggle(obj) { % if ( $conf->exists('voip-cust_cdr_squelch') ) { - + % } else { @@ -448,15 +522,28 @@ function toggle(obj) { % if ( $conf->exists('voip-cust_email_csv_cdr') ) { - + % } else { % } +% if ( $conf->exists('voip-cust_accountcode_cdr') ) { + + + +% } else { + +% } + % if ( $show_term || $cust_main->cdr_termination_percentage ) { - +
${r}Approved by
${r}!.emt('Approved by').qq!
${r}Expiration
${r}!.emt('Expiration').qq! '. % % include('/elements/select-month_year.html', @@ -280,7 +352,7 @@ % % ''. % -% qq!!. +% qq!!. % qq!!. % % ''. @@ -296,7 +368,7 @@ % % '
${r}Amount
${r}!.emt('Amount').qq!
 
'. % -% qq!!. +% qq!!. % qq!!. % % ''. @@ -312,7 +384,7 @@ % % '
${r}Amount
${r}!.emt('Amount').qq!
 
'. % -% qq!!. +% qq!!. % qq!!. % % ''. @@ -345,15 +417,15 @@ % );
${r}Amount
${r}!.emt('Amount').qq!
 
- <% include( '/elements/selectlayers.html', + <& /elements/selectlayers.html, 'field' => 'payby', 'curr_value' => $payby2option{$payby || $payby_default || $payby[0] }, 'options' => \@options, 'labels' => \%allopt, 'html_between' => '
', 'layer_callback' => sub { my $layer = shift; $payby{$layer}; }, - ) - %> + 'onchange' => 'init_payauto_changed();', + &> <% &ntable("#cccccc") %> @@ -382,7 +454,7 @@ ? 'CHECKED' : '' - %>> Postal mail invoice + %>> <% mt('Postal mail invoice') |h %>
<% $conf->exists('cust_main-require_invoicing_list_email') ? $r : '' %>Email address(es)
Invoice terms <% mt('Invoice terms') |h %> - <% include('/elements/select-terms.html', + <& /elements/select-terms.html, 'curr_value' => $cust_main->invoice_terms, - ) - %> + &>
Credit limit <% mt('Credit limit') |h %> credit_limit) %><% length($cust_main->credit_limit) ? '' : ' DISABLED' %>> - credit_limit) ? '' : ' CHECKED'%>> Unlimited + credit_limit) ? '' : ' CHECKED'%>> <% mt('Unlimited') |h %>
spool_cdr eq "Y" ? 'CHECKED' : '' %>> Spool CDRsspool_cdr eq "Y" ? 'CHECKED' : '' %>> <% mt('Spool CDRs') |h %>
squelch_cdr eq "Y" ? 'CHECKED' : '' %>> Omit CDRs from invoicessquelch_cdr eq "Y" ? 'CHECKED' : '' %>> <% mt($conf->exists('voip-cdr_email') ? 'Omit CDRs from printed invoices' : 'Omit CDRs from invoices') |h %>
email_csv_cdr eq "Y" ? 'CHECKED' : '' %>> Attach CDRs as CSV to emailed invoicesemail_csv_cdr eq "Y" ? 'CHECKED' : '' %>> <% mt('Attach CDRs as CSV to emailed invoices') |h %>
+ accountcode_cdr eq "Y" ? 'CHECKED' : '' %> + > <% mt('Breakdown CDRs by accountcode') |h %>
CDR termination settlement<% mt('CDR termination settlement') |h %> - <% $r %> required fields + <% $r %> <% mt('required fields') |h %> % } + + <%once> my $paystate_label = FS::Msgcat::_gettext('paystate');