diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2013-01-05 14:49:44 -0800 | 
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2013-01-05 14:49:44 -0800 | 
| commit | 7a618d4493ab7a87f6eabfd1ce3630a6b3436c2f (patch) | |
| tree | ecb446f0297fe53227fc9d6b0be8ee1f4b3208d3 /httemplate | |
| parent | 170085d3536733f303e242503f0e034c65016b73 (diff) | |
| parent | 949114e0f65232b405e084bcfcff37b1fd9a2926 (diff) | |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate')
26 files changed, 184 insertions, 31 deletions
| diff --git a/httemplate/edit/cust_refund.cgi b/httemplate/edit/cust_refund.cgi index 1ef69fdae..656d5ebb5 100755 --- a/httemplate/edit/cust_refund.cgi +++ b/httemplate/edit/cust_refund.cgi @@ -60,29 +60,25 @@    </TR>  % }  -% -%  #false laziness w/FS/FS/cust_main::realtime_refund_bop -%  if ( $cust_pay->paybatch =~ /^(\w+):(\w+)(:(\w+))?$/ ) { -%    my ( $processor, $auth, $order_number ) = ( $1, $2, $4 ); -%   - -      <TR> -      <TD ALIGN="right">Processor</TD><TD BGCOLOR="#ffffff"><% $processor %></TD> +      <TD ALIGN="right">Processor</TD> +      <TD BGCOLOR="#ffffff"><% $cust_pay->processor %></TD>      </TR>  % if ( length($auth) ) {         <TR> -        <TD ALIGN="right">Authorization</TD><TD BGCOLOR="#ffffff"><% $auth %></TD> +        <TD ALIGN="right">Authorization</TD> +        <TD BGCOLOR="#ffffff"><% $cust_pay->auth %></TD>        </TR>  % }  -% if ( length($order_number) ) {  +% if ( length($cust_pay->order_number) ) {         <TR> -        <TD ALIGN="right">Order number</TD><TD BGCOLOR="#ffffff"><% $order_number %></TD> +        <TD ALIGN="right">Order number</TD> +        <TD BGCOLOR="#ffffff"><% $cust_pay->order_number %></TD>        </TR>  % }  -% }  +% }  #if $cust_pay    </TABLE>  % }  diff --git a/httemplate/edit/process/cust_pay.cgi b/httemplate/edit/process/cust_pay.cgi index ce0ec3212..a002fa181 100755 --- a/httemplate/edit/process/cust_pay.cgi +++ b/httemplate/edit/process/cust_pay.cgi @@ -57,6 +57,8 @@ my $new = new FS::cust_pay ( {          bank depositor account teller        )    #} fields('cust_pay') +  # gatewaynum, processor, auth, order_number +  # are for realtime payments only, and can't be entered manually  } );  my @rights = ('Post payment'); diff --git a/httemplate/graph/cust_bill_pkg.cgi b/httemplate/graph/cust_bill_pkg.cgi index c334ae9e7..91bedf3fe 100644 --- a/httemplate/graph/cust_bill_pkg.cgi +++ b/httemplate/graph/cust_bill_pkg.cgi @@ -13,6 +13,7 @@                  'bottom_total' => 1,                  'bottom_link'  => $bottom_link,                  'agentnum'     => $agentnum, +                'cust_classnum'=> \@cust_classnums,               )  %>  <%init> @@ -68,6 +69,9 @@ $title .= $sel_part_referral->referral.' '  $title .= 'Sales Report (Gross)';  $title .= ', average per customer package'  if $average_per_cust_pkg; +my @cust_classnums = grep /^\d+$/, $cgi->param('cust_classnum'); +$bottom_link .= "cust_classnum=$_;" foreach @cust_classnums; +  #classnum (here)  # 0: all classes  # not specified: empty class @@ -188,6 +192,7 @@ foreach my $agent ( $all_agent || $sel_agent || qsearch('agent', { 'disabled' =>          push @links, "$link;".                       ($all_agent ? '' : "agentnum=$row_agentnum;").                       ($all_part_referral ? '' : "refnum=$row_refnum;"). +                     (join('',map {"cust_classnum=$_;"} @cust_classnums)).                       ($all_class ? '' : "classnum=$row_classnum;").                       "distribute=$distribute;".                       "use_override=$use_override;charges=$component;"; @@ -209,6 +214,7 @@ foreach my $agent ( $all_agent || $sel_agent || qsearch('agent', { 'disabled' =>      my $component = join('', @components);      my @row_params = (  'agentnum'              => $row_agentnum, +                        'cust_classnum'         => \@cust_classnums,                          'use_override'          => $use_override,                          'average_per_cust_pkg'  => $average_per_cust_pkg,                          'distribute'            => $distribute, @@ -231,6 +237,8 @@ foreach my $agent ( $all_agent || $sel_agent || qsearch('agent', { 'disabled' =>        $row_link .= ";refnum=".$sel_part_referral->refnum;      } +    $row_link .= ";cust_classnum=$_" foreach @cust_classnums; +      push @items, 'cust_bill_pkg';      push @labels, mt('[_1] - Subtotal', $agent->agent);      push @params, \@row_params; diff --git a/httemplate/graph/elements/monthly.html b/httemplate/graph/elements/monthly.html index c736de696..939f18a35 100644 --- a/httemplate/graph/elements/monthly.html +++ b/httemplate/graph/elements/monthly.html @@ -37,6 +37,7 @@ Example:      #optional      'agentnum'        => $agentnum,      'refnum'          => $refnum, +    'cust_classnum'   => \@classnums,      'nototal'         => 1,      'graph_type'      => 'LinesPoints',      'remove_empty'    => 1, @@ -121,6 +122,7 @@ my %reportopts = (        'projection'   => $opt{'projection'},        'agentnum'     => $opt{'agentnum'},        'refnum'       => $opt{'refnum'}, +      'cust_classnum'=> $opt{'cust_classnum'},        'remove_empty' => $opt{'remove_empty'},        'doublemonths' => $opt{'doublemonths'},  ); diff --git a/httemplate/graph/money_time.cgi b/httemplate/graph/money_time.cgi index 166735fc6..9071fc7b9 100644 --- a/httemplate/graph/money_time.cgi +++ b/httemplate/graph/money_time.cgi @@ -8,6 +8,7 @@                  'links'        => \%link,                  'agentnum'     => $agentnum,                  'refnum'       => $refnum, +                'cust_classnum'=> \@classnums,                  'nototal'      => scalar($cgi->param('12mo')),               )  %> @@ -25,6 +26,11 @@ if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {  }  my $agentname = $agent ? $agent->agent.' ' : ''; +my @classnums; +if ( $cgi->param('cust_classnum') ) { +  @classnums = grep /^\d+$/, $cgi->param('cust_classnum'); +} +  my( $refnum, $part_referral ) = ('', '');  if ( $cgi->param('refnum') =~ /^(\d+)$/ ) {    $refnum = $1; @@ -93,6 +99,7 @@ $color{$_.'_12mo'} = $color{$_}    foreach keys %color;  my $ar = "agentnum=$agentnum;refnum=$refnum"; +$ar .= ";cust_classnum=$_" foreach @classnums;  my %link = (    'invoiced'   => "${p}search/cust_bill.html?$ar;", diff --git a/httemplate/graph/money_time_daily.cgi b/httemplate/graph/money_time_daily.cgi index 4d16ff871..0fdbd895e 100644 --- a/httemplate/graph/money_time_daily.cgi +++ b/httemplate/graph/money_time_daily.cgi @@ -7,6 +7,7 @@                  'colors'       => \%color,                  'links'        => \%link,                  'agentnum'     => $agentnum, +                'cust_classnum'=> \@classnums,                  'nototal'      => scalar($cgi->param('12mo')),                  'daily'        => 1,                  'start_day'    => $smday, @@ -32,6 +33,11 @@ if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {  my $agentname = $agent ? $agent->agent.' ' : ''; +my @classnums; +if ( $cgi->param('cust_classnum') ) { +  @classnums = grep /^\d+$/, $cgi->param('cust_classnum'); +} +  my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi);  my ($ssec,$smin,$shour,$smday,$smon,$syear,$swday,$syday,$sisdst)       = localtime($beginning); diff --git a/httemplate/graph/report_cust_bill_pkg.html b/httemplate/graph/report_cust_bill_pkg.html index 31792e8dd..251e7d36e 100644 --- a/httemplate/graph/report_cust_bill_pkg.html +++ b/httemplate/graph/report_cust_bill_pkg.html @@ -34,6 +34,12 @@ function enable_agent_totals(obj) {    'onchange'      => 'enable_agent_totals',  &> +<& /elements/tr-select-cust_class.html, +  'field'         => 'cust_classnum', +  'label'         => 'Customer class', +  'multiple'      => 1, +&> +  <& /elements/tr-select-part_referral.html,    'field'         => 'refnum',    'label'         => 'Advertising source ', diff --git a/httemplate/graph/report_money_time.html b/httemplate/graph/report_money_time.html index 97876c996..315d31bc5 100644 --- a/httemplate/graph/report_money_time.html +++ b/httemplate/graph/report_money_time.html @@ -24,6 +24,11 @@            )  %> +<& /elements/tr-select-cust_class.html, +    'field'    => 'cust_classnum', # to avoid ambiguity in FS::Report::Table +    'multiple' => 1 +&> +  <% include('/elements/tr-select-part_referral.html',               'label'         => 'Advertising source ',               'disable_empty' => 0, diff --git a/httemplate/graph/report_money_time_daily.html b/httemplate/graph/report_money_time_daily.html index 8328199c7..a436d0879 100644 --- a/httemplate/graph/report_money_time_daily.html +++ b/httemplate/graph/report_money_time_daily.html @@ -17,6 +17,11 @@            )  %> +<& /elements/tr-select-cust_class.html, +    'field'    => 'cust_classnum', +    'multiple' => 1, +&> +  </TABLE>  <BR><INPUT TYPE="submit" VALUE="Display"> diff --git a/httemplate/search/cust_bill.html b/httemplate/search/cust_bill.html index 406486a85..3c0530e4f 100755 --- a/httemplate/search/cust_bill.html +++ b/httemplate/search/cust_bill.html @@ -97,6 +97,10 @@ if ( $cgi->param('invnum') =~ /^\s*(FS-)?(\d+)\s*$/ ) {      $search{'refnum'} = $1;    } +  if ( $cgi->param('cust_classnum') ) { +    $search{'cust_classnum'} = [ $cgi->param('cust_classnum') ]; +  } +    if ( $cgi->param('custnum') =~ /^(\d+)$/ ) {      $search{'custnum'} = $1;    } diff --git a/httemplate/search/cust_bill_pay.html b/httemplate/search/cust_bill_pay.html index 22e9a6795..79de74985 100644 --- a/httemplate/search/cust_bill_pay.html +++ b/httemplate/search/cust_bill_pay.html @@ -99,6 +99,13 @@ if ( $cgi->param('refnum') && $cgi->param('refnum') =~ /^(\d+)$/ ) {    $title = $part_referral->referral. " $title";  } +if ( $cgi->param('cust_classnum') ) { +  my @classnums = grep /^\d+$/, $cgi->param('cust_classnum'); +  push @search, 'cust_main.classnum IN('.join(',',@classnums).')' +    if @classnums; +} + +  my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi);  push @search, "cust_bill._date >= $beginning ",                "cust_bill._date <= $ending"; diff --git a/httemplate/search/cust_bill_pkg.cgi b/httemplate/search/cust_bill_pkg.cgi index 817238da0..1e67e9320 100644 --- a/httemplate/search/cust_bill_pkg.cgi +++ b/httemplate/search/cust_bill_pkg.cgi @@ -120,6 +120,8 @@ Filtering parameters:  - refnum: Filter on customer reference source. +- cust_classnum: Filter on customer class. +  - classnum: Filter on package class.  - use_override: Apply "classnum" and "taxclass" filtering based on the  @@ -258,6 +260,13 @@ if ( $cgi->param('refnum') =~ /^(\d+)$/ ) {    push @where, "cust_main.refnum = $1";  } +# cust_classnum +if ( $cgi->param('cust_classnum') ) { +  my @classnums = grep /^\d+$/, $cgi->param('cust_classnum'); +  push @where, 'cust_main.classnum IN('.join(',',@classnums).')' +    if @classnums; +} +  # custnum  if ( $cgi->param('custnum') =~ /^(\d+)$/ ) {    push @where, "cust_main.custnum = $1"; diff --git a/httemplate/search/cust_bill_pkg_referral.html b/httemplate/search/cust_bill_pkg_referral.html index 77b486021..1289ff7ee 100644 --- a/httemplate/search/cust_bill_pkg_referral.html +++ b/httemplate/search/cust_bill_pkg_referral.html @@ -156,6 +156,11 @@ if ( @refnum ) {    push @where, 'cust_main.refnum IN ('.join(',', @refnum).')';  } +my @cust_classnums = grep /^\d+$/, $cgi->param('cust_classnum'); +if ( @cust_classnums ) { +  push @where, 'cust_main.classnum IN ('.join(',', @cust_classnums).')'; +} +  if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {    push @where, "cust_main.agentnum = $1";  } diff --git a/httemplate/search/cust_credit.html b/httemplate/search/cust_credit.html index 38f03491d..f5d8fa19f 100755 --- a/httemplate/search/cust_credit.html +++ b/httemplate/search/cust_credit.html @@ -103,6 +103,12 @@ if ( $cgi->param('refnum') && $cgi->param('refnum') =~ /^(\d+)$/ ) {    $title = $part_referral->referral. " $title";  } +if ( $cgi->param('cust_classnum') ) { +  my @classnums = grep /^\d+$/, $cgi->param('cust_classnum'); +  push @search, 'cust_main.classnum IN('.join(',',@classnums).')' +    if @classnums; +} +  if ( $unapplied ) {    push @search, FS::cust_credit->unapplied_sql . ' > 0';  } diff --git a/httemplate/search/cust_credit_refund.html b/httemplate/search/cust_credit_refund.html index 361c8ad2f..75138e99d 100644 --- a/httemplate/search/cust_credit_refund.html +++ b/httemplate/search/cust_credit_refund.html @@ -85,6 +85,13 @@ if ( $cgi->param('refnum') && $cgi->param('refnum') =~ /^(\d+)$/ ) {    $title = $part_referral->referral. " $title";  } +if ( $cgi->param('cust_classnum') ) { +  my @classnums = grep /^\d+$/, $cgi->param('cust_classnum'); +  push @search, 'cust_main.classnum IN('.join(',',@classnums).')' +    if @classnums; +} + +  my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi);  push @search, "cust_credit._date >= $beginning ",                "cust_credit._date <= $ending"; diff --git a/httemplate/search/customer_accounting_summary.html b/httemplate/search/customer_accounting_summary.html index 0e9e24fa6..12c896276 100644 --- a/httemplate/search/customer_accounting_summary.html +++ b/httemplate/search/customer_accounting_summary.html @@ -142,8 +142,7 @@ $title .=  $sel_part_referral->referral.' '  $title .= 'Customer Accounting Summary Report'; -my @custs = (); -@custs = qsearch('cust_main', {} ); +my @cust_classnums = grep /^\d+$/, $cgi->param('cust_classnum');  my @items  = ('netsales', 'cashflow');  my @params = ( [], [] ); @@ -167,6 +166,18 @@ my @custnames = ();  my $status = $cgi->param('status');  die "invalid status" unless $status =~ /^\w+|$/; +my %search_hash; +foreach (qw(agentnum refnum status)) { +  if ( defined $cgi->param($_) ) { +    $search_hash{$_} = $cgi->param($_); +  } +} +$search_hash{'classnum'} = [ $cgi->param('cust_classnum') ]  +  if $cgi->param('cust_classnum'); + +my $query = FS::cust_main::Search->search(\%search_hash); +my @custs = qsearch($query); +  foreach my $cust_main ( @custs ) {    # XXX should do this in the qsearch    next unless ($status eq '' || $status eq $cust_main->status);  diff --git a/httemplate/search/elements/cust_pay_or_refund.html b/httemplate/search/elements/cust_pay_or_refund.html index c60411107..eeef0c0e1 100755 --- a/httemplate/search/elements/cust_pay_or_refund.html +++ b/httemplate/search/elements/cust_pay_or_refund.html @@ -239,6 +239,12 @@ if ( $cgi->param('magic') ) {        $title = $part_referral->referral. " $title";      } +    if ( $cgi->param('cust_classnum') ) { +      my @classnums = grep /^\d+$/, $cgi->param('cust_classnum'); +      push @search, 'cust_main.classnum IN('.join(',',@classnums).')' +        if @classnums; +    } +      if ( $cgi->param('custnum') =~ /^(\d+)$/ ) {        push @search, "custnum = $1";      } @@ -324,6 +330,16 @@ if ( $cgi->param('magic') ) {        push @search, "$table.payinfo = '$1'";      } +    if ( $cgi->param('ccpay') =~ /^([\w-:]+)$/ ) { +      # I think that's all the characters we need to allow. +      # To avoid confusion, this parameter searches both auth and order_number. +      push @search, "($table.auth LIKE '$1%') OR ($table.order_number LIKE '$1%')"; +      push @fields, 'auth', 'order_number'; +      push @header, 'Auth #', 'Transaction #'; +      $align .= 'rr'; + +    } +      if ( $cgi->param('usernum') =~ /^(\d+)$/ ) {        push @search, "$table.usernum = $1";      } diff --git a/httemplate/search/elements/report_cust_pay_or_refund.html b/httemplate/search/elements/report_cust_pay_or_refund.html index a2b90b47d..0e04ab0dd 100644 --- a/httemplate/search/elements/report_cust_pay_or_refund.html +++ b/httemplate/search/elements/report_cust_pay_or_refund.html @@ -50,23 +50,48 @@ Examples:    <SCRIPT TYPE="text/javascript">      function payby_changed(what) { -      if ( what.options[what.selectedIndex].value == 'BILL' ) { -	document.getElementById('checkno_caption').style.color = '#000000'; -        what.form.payinfo.disabled = false; -	what.form.payinfo.style.backgroundColor = '#ffffff'; +      if ( what.value == 'BILL' ) { +        show('payinfo'); +        hide('ccpay'); +      } else if ( what.value.match(/^CARD|CHEK/) ) { +        hide('payinfo'); +        show('ccpay');        } else { -	document.getElementById('checkno_caption').style.color = '#bbbbbb'; -        what.form.payinfo.disabled = true; -	what.form.payinfo.style.backgroundColor = '#dddddd'; +        hide('payinfo'); +        hide('ccpay');        }      } +    function show(what) { +      document.getElementById(what+'_caption').style.color = '#000000'; +      document.getElementById(what).disabled = false; +      document.getElementById(what).style.backgroundColor = '#ffffff'; +    } + +    function hide(what) { +      document.getElementById(what+'_caption').style.color = '#bbbbbb'; +      document.getElementById(what).disabled = true; +      document.getElementById(what).style.backgroundColor = '#dddddd'; +    } + + +    </SCRIPT>    <TR> -    <TD ALIGN="right"><FONT ID="checkno_caption" COLOR="#bbbbbb"><% mt('Check #:') |h %> </FONT></TD> +    <TD ALIGN="right"><FONT ID="payinfo_caption" COLOR="#bbbbbb"><% mt('Check #:') |h %> </FONT></TD> +    <TD> +      <INPUT TYPE="text" ID="payinfo" NAME="payinfo" DISABLED STYLE="background-color: #dddddd"> +    </TD> +  </TR> +  <TR> +    <TD ALIGN="right"> +      <FONT ID="ccpay_caption" COLOR="#bbbbbb"> +        <% mt('Transaction #') |h %> +      </FONT> +    </TD>      <TD> -      <INPUT TYPE="text" NAME="payinfo" DISABLED STYLE="background-color: #dddddd"> +      <INPUT TYPE="text" ID="ccpay" NAME="ccpay" DISABLED STYLE="background-color: #dddddd">      </TD>    </TR> diff --git a/httemplate/search/prepaid_income.html b/httemplate/search/prepaid_income.html index ebac5a2a9..03d121d70 100644 --- a/httemplate/search/prepaid_income.html +++ b/httemplate/search/prepaid_income.html @@ -129,6 +129,13 @@ if ( $cgi->param('status') =~ /^([a-z]+)$/ ) {    push @where, FS::cust_main->cust_status_sql . " = '$status'";  } +if ( $cgi->param('cust_classnum') ) { +  my @classnums = grep /^\d+$/, $cgi->param('cust_classnum'); +  $link .= ";cust_classnum=$_" foreach @classnums; +  push @where, 'cust_main.classnum IN('.join(',',@classnums).')' +    if @classnums; +} +  my %total = ();  my %total_legacy = ();  foreach my $agentnum (@agentnums) { diff --git a/httemplate/search/report_cust_bill_pkg.html b/httemplate/search/report_cust_bill_pkg.html index 4f6ee78db..f121ef49f 100644 --- a/httemplate/search/report_cust_bill_pkg.html +++ b/httemplate/search/report_cust_bill_pkg.html @@ -15,14 +15,13 @@       label => emt('Customer status'),  &> -<!-- customer  <& /elements/tr-select-cust_class.html, -     'label'        => emt('Class'), +     'label'        => emt('Customer class'), +     'field'        => 'cust_classnum',       'multiple'     => 1,       'pre_options'  => [ '' => emt('(none)') ],       'all_selected' => 1,  &> --->  <& /elements/tr-input-beginning_ending.html &> diff --git a/httemplate/search/report_cust_bill_pkg_referral.html b/httemplate/search/report_cust_bill_pkg_referral.html index b4716d4fc..47478aa42 100644 --- a/httemplate/search/report_cust_bill_pkg_referral.html +++ b/httemplate/search/report_cust_bill_pkg_referral.html @@ -23,6 +23,11 @@    'disable_empty' => 1,  &> +<& /elements/tr-select-cust_class.html, +  'field'         => 'cust_classnum', +  'multiple'      => 1, +&> +  <& /elements/tr-select-pkg_class.html,    'pre_options' => [ '' => 'all', '0' => '(empty class)' ],    'disable_empty' => 1, diff --git a/httemplate/search/report_customer_accounting_summary.html b/httemplate/search/report_customer_accounting_summary.html index 537abffeb..8206f34ca 100755 --- a/httemplate/search/report_customer_accounting_summary.html +++ b/httemplate/search/report_customer_accounting_summary.html @@ -25,6 +25,12 @@  		'label' => 'Customer Status'      ) %> +    <& /elements/tr-select-cust_class.html, +                'label' => 'Customer Class', +                'field' => 'cust_classnum', +                'multiple' => 1, +    &> +      <& /elements/tr-checkbox.html,          'label' => 'Separate setup fees',          'field' => 'setuprecur', diff --git a/httemplate/search/report_prepaid_income.html b/httemplate/search/report_prepaid_income.html index 4743e2d21..dfb2ea249 100644 --- a/httemplate/search/report_prepaid_income.html +++ b/httemplate/search/report_prepaid_income.html @@ -33,6 +33,8 @@    <& /elements/tr-select-cust_main-status.html,        label => mt('Customer Status') &> +  <& /elements/tr-select-cust_class.html, +      label => mt('Customer Class'), field => 'cust_classnum', multiple => 1 &>    <& /elements/tr-select.html,        label => 'Invoice Status',        field => 'mode', diff --git a/httemplate/search/unearned_detail.html b/httemplate/search/unearned_detail.html index 02d514cbe..f61de052e 100644 --- a/httemplate/search/unearned_detail.html +++ b/httemplate/search/unearned_detail.html @@ -118,6 +118,12 @@ if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {    push @where, "cust_main.agentnum = $1";  } +if ( $cgi->param('cust_classnum') ) { +  my @classnums = grep /^\d+$/, $cgi->param('cust_classnum'); +  push @where, 'cust_main.classnum IN('.join(',',@classnums).')' +    if @classnums; +} +  # no pkgclass, no taxclass, no tax location...  # unearned revenue mode @@ -235,7 +241,8 @@ my $query = {  my $ilink = [ "${p}view/cust_bill.cgi?", 'invnum' ];  my $clink = [ "${p}view/cust_main.cgi?", 'custnum' ]; -my $money_char; +my $conf = new FS::Conf; +my $money_char = $conf->config('money_char') || '$';  sub money_sub {    $conf ||= new FS::Conf; diff --git a/httemplate/view/cust_pay.html b/httemplate/view/cust_pay.html index f9c8bc19c..76a24884a 100644 --- a/httemplate/view/cust_pay.html +++ b/httemplate/view/cust_pay.html @@ -77,7 +77,7 @@    <TD BGCOLOR="#FFFFFF"><B><% $cust_pay->payby_name %> #<% $cust_pay->paymask %></B></TD>  </TR> -% if ( $cust_pay->payby =~ /^(CARD|CHEK|LECB)$/ && $cust_pay->paybatch ) {  +% if ( $cust_pay->payby =~ /^(CARD|CHEK|LECB)$/ && $cust_pay->processor ) {       <TR>        <TD ALIGN="right"><% mt('Processor') |h %></TD> @@ -86,7 +86,7 @@      <TR>        <TD ALIGN="right"><% mt('Authorization #') |h %></TD> -      <TD BGCOLOR="#FFFFFF"><B><% $cust_pay->authorization %></B></TD> +      <TD BGCOLOR="#FFFFFF"><B><% $cust_pay->auth %></B></TD>      </TR>  %   if ( $cust_pay->order_number ) { diff --git a/httemplate/view/cust_refund.html b/httemplate/view/cust_refund.html index 996b4c05a..319761506 100644 --- a/httemplate/view/cust_refund.html +++ b/httemplate/view/cust_refund.html @@ -62,7 +62,7 @@    <TD BGCOLOR="#FFFFFF"><B><% $cust_refund->payby_name %><% $cust_refund->paymask ? ' #'.$cust_refund->paymask : '' %></B></TD>  </TR> -% if ( $cust_refund->payby =~ /^(CARD|CHEK|LECB)$/ && $cust_refund->paybatch ) {  +% if ( $cust_refund->payby =~ /^(CARD|CHEK|LECB)$/ && $cust_refund->processor ) {       <TR>        <TD ALIGN="right"><% mt('Processor') |h %></TD> @@ -71,7 +71,7 @@      <TR>        <TD ALIGN="right"><% mt('Authorization #') |h %></TD> -      <TD BGCOLOR="#FFFFFF"><B><% $cust_refund->authorization %></B></TD> +      <TD BGCOLOR="#FFFFFF"><B><% $cust_refund->auth %></B></TD>      </TR>  %   if ( $cust_refund->order_number ) { | 
