X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fbilling.html;h=fd078c5daa4491bfc56a7f52bb24c664471c6a63;hp=e6600e6891f95171eaf3b5d6b56c75a58778cf03;hb=9ad2437e1cfaffceb657216a48ea3c7cc9414922;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984 diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index e6600e689..fd078c5da 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; @@ -7,7 +6,7 @@ -% foreach my $field (qw( payname paycvv paystart_month paystart_year payissue payip paytype paystate )) { +% foreach my $field (qw( payname paycvv paystart_month paystart_year payissue payip paytype paystate billday )) { @@ -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"'; @@ -120,16 +145,32 @@ % : $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', @@ -140,14 +181,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', @@ -165,13 +205,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   +%
', % @@ -179,27 +229,31 @@ % % ''. % -% qq!!. +% qq!!. % qq!'. -% qq!!. % -% qq!!. +% 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
${r}!.emt('ABA/Routing number').qq! !. -% qq!(help)!. +% 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', @@ -209,11 +263,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   +%
', % @@ -221,7 +281,7 @@ % % ''. % -% qq!!. +% qq!!. % qq!!. % % qq!!. @@ -241,13 +301,13 @@ % % '
${r}Phone number
${r}!.emt('Phone number').qq!
'. % -% qq!!. +% qq!!. % qq!!. % % qq!!. % qq!!. % -% qq!!. +% qq!!. % qq!!. % % ''. @@ -262,10 +322,10 @@ % % '
P.O.
!.emt('P.O.').qq!
Attention
!.emt('Attention').qq!
 
'. % -% qq!!. +% qq!!. % qq!!. % -% qq!!. +% qq!!. % ' @@ -402,31 +462,33 @@ ? 'CHECKED' : '' - %>> Fax invoice + %>> <% mt('Fax invoice') |h %> % } +% unless ( $conf->exists('cust-email-high-visibility')) { +% } - + + - + % if ( $conf->exists('voip-cust_cdr_spools') ) { - + % } else { @@ -448,7 +510,7 @@ function toggle(obj) { % if ( $conf->exists('voip-cust_cdr_squelch') ) { - + % } else { @@ -456,15 +518,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', @@ -288,7 +348,7 @@ % % ''. % -% qq!!. +% qq!!. % qq!!. % % ''. @@ -304,7 +364,7 @@ % % '
${r}Amount
${r}!.emt('Amount').qq!
 
'. % -% qq!!. +% qq!!. % qq!!. % % ''. @@ -320,7 +380,7 @@ % % '
${r}Amount
${r}!.emt('Amount').qq!
 
'. % -% qq!!. +% qq!!. % qq!!. % % ''. @@ -353,15 +413,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") %> @@ -390,7 +450,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 %> % } +%my @available_locales = $conf->config('available-locales'); +%if ( scalar(@available_locales) ) { +% push @available_locales, ''; +% my %locale_labels = map { +% my %ll; +% my %info = FS::Locales->locale_info($_); +% $ll{$_} = $info{name} . " (" . $info{country} . ")"; +% %ll; +% } FS::Locales->locales; + <& /elements/tr-select.html, + 'label' => emt('Invoicing locale'), + 'field' => 'locale', + 'options' => \@available_locales, + 'labels' => \%locale_labels, + 'curr_value' => $cust_main->locale, + &> +% } +
- <% $r %> required fields + <% $r %> <% mt('required fields') |h %> % } + + <%once> my $paystate_label = FS::Msgcat::_gettext('paystate');