X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fbilling.html;h=1eda82545378acee8f93d2d4673d1b5b5dee041f;hb=905187f976c20e261b0b7dfdc6c6f30acbc12592;hp=78a2002a4bc38b862bf9d413476a14ee9121a99a;hpb=3ce7691203a7737406bf2d4442f7fd84b81f847e;p=freeside.git diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index 78a2002a4..1eda82545 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -1,34 +1,21 @@ -% -% -%my( $cust_main, %options ) = @_; -%my @invoicing_list = @{ $options{'invoicing_list'} }; -%my $conf = new FS::Conf; -%my $payby_default = $conf->config('payby-default'); -% -%my @payby = grep /\w/, $conf->config('payby'); -%#@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH WEST COMP )) -%@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH COMP )) -% unless @payby; -% %if ( $payby_default eq 'HIDE' ) { % % $cust_main->payby('BILL') unless $cust_main->payby; -% -% -
-% # XXX key -% foreach my $field (qw( payinfo payname paycvv paystart_month paystart_year payissue payip )) { + + +% foreach my $field (qw( payname paycvv paystart_month paystart_year payissue payip paytype paystate )) { + % } -% + % #false laziness w/elements/select-month_year.html & view/cust_main/billing.html % my( $mon, $year ); % my $date = $cust_main->paydate || '12-2037'; @@ -39,8 +26,6 @@ % } else { % die "unrecognized expiration date format: $date"; % } -% - @@ -54,12 +39,10 @@
+ % } else { % % my $r = qq!* !; -% -% -
Billing information <% &ntable("#cccccc") %> @@ -134,17 +117,14 @@ +'
[iframe not supported]
'); } -% -% -% my($payby, $payinfo, $payname)=( -% $cust_main->payby, -% $cust_main->payinfo, -% $cust_main->payname, -% ); + +% my $payby = $cust_main->payby; +% my $paytype = $cust_main->paytype; % my( $account, $aba ) = split('@', $payinfo); % % my $disabled = 'DISABLED style="background-color: #dddddd"'; % my $text_disabled = 'style="color: #999999"'; +% % if ( $payby =~ /^(CARD|DCRD)$/ && cardtype($payinfo) =~ /^(Switch|Solo)$/ ) { % $disabled = 'style="background-color: #ffffff"'; % $text_disabled = 'style="color: #000000";' @@ -174,7 +154,7 @@ % % qq!(help)!. % qq!!. -% ''. +% ''. % % % qq!Start date !. @@ -210,10 +190,13 @@ % ''. % % qq!!. -% qq!'. +% qq!'. +% qq!!. % % qq!!. -% qq!!. % @@ -221,9 +204,22 @@ % qq!!. % % qq!!. -% qq!!. +% qq!!. +% ( $conf->exists('show_bankstate') ? +% qq!!. +% qq!" +% : '' +% ). % -% qq!'. +% +% qq!'. % % ''. % ''. @@ -403,11 +399,7 @@ -% if ( $conf->exists('voip-cust_cdr_spools') ) { + + + + + +% if ( $conf->exists('voip-cust_cdr_spools') ) { @@ -443,7 +449,6 @@ % } -
${r}Account number
Type
${r}ABA/Routing number !. +% qq! !. % qq!(help)!. % qq!
${r}Bank name
$paystate_label!. +% include('select-state.html', +% 'empty' => '(choose)', +% 'state' => $cust_main->paystate, +% 'country' => $cust_main->country, +% 'prefix' => 'pay', +% ). "
Charge future payments to this electronic check automatically
Charge future payments to this electronic check automatically
 
 
exists('disablepostalinvoicedefault') - && ! $cust_main->custnum - ) - || grep { $_ eq 'POST' } @invoicing_list ) + ( grep { $_ eq 'POST' } @invoicing_list ) ? 'CHECKED' : '' @@ -433,8 +425,22 @@ Email invoice
Invoice terms + +
spool_cdr eq "Y" ? 'CHECKED' : '' %>> Spool CDRs
@@ -451,4 +456,23 @@ <% $r %> required fields % } +<%once> + +my $paystate_label = FS::Msgcat::_gettext('paystate'); +$paystate_label = 'Bank state' if $paystate_label =~/^paystate$/; + + +<%init> + +my( $cust_main, %options ) = @_; +my @invoicing_list = @{ $options{'invoicing_list'} }; +my $payinfo = $options{'payinfo'}; +my $conf = new FS::Conf; +my $payby_default = $conf->config('payby-default'); + +my @payby = grep /\w/, $conf->config('payby'); +#@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH WEST COMP )) +@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH COMP )) + unless @payby; +