X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fcust_main_dayranges.html;fp=httemplate%2Fsearch%2Felements%2Fcust_main_dayranges.html;h=cc1601455ebbaf258b6e2d113a4578e91515c193;hp=91e039d285b0c513fcca778cb5a6151e0d85b554;hb=2db5d3e1c4d5a48ad15b59efd2f66957937421aa;hpb=ddde2be8e3d2cd0e61da2f68d4c06a6b31c50562 diff --git a/httemplate/search/elements/cust_main_dayranges.html b/httemplate/search/elements/cust_main_dayranges.html index 91e039d28..cc1601455 100644 --- a/httemplate/search/elements/cust_main_dayranges.html +++ b/httemplate/search/elements/cust_main_dayranges.html @@ -15,7 +15,7 @@ Example: }; -<% include( 'search.html', +<& search.html, 'name' => 'customers', 'query' => $sql_query, 'count_query' => $count_sql, @@ -25,7 +25,7 @@ Example: '30-60', '60-90', '90+', - 'Total', + emt('Total'), @pay_head, ], 'footer' => [ @@ -68,12 +68,9 @@ Example: '', @pay_links, ], - #'align' => 'rlccrrrrr', 'align' => FS::UI::Web::cust_aligns(). 'rrrrr'. ('c' x @pay_labels), - #'size' => [ '', '', '-1', '-1', '', '', '', '', '', ], - #'style' => [ '', '', 'b', 'b', '', '', '', '', 'b', ], 'size' => [ ( map '', FS::UI::Web::cust_header() ), #'-1', '', '', '', '', '', ], '', '', '', '', '', '', @@ -95,8 +92,7 @@ Example: ( map '', @pay_labels ), ], %opt, - ) -%> +&> <%init> my %opt = @_; @@ -118,7 +114,6 @@ if($cgi->param('as_of')) { $opt{'title'} .= ' ('.$cgi->param('as_of').')' if $offset > 0; } -#my $range_cols = join(',', map &{$range_sub}( @$_ ), @ranges ); my $range_cols = join(',', map call_range_sub($range_sub, @$_, 'offset' => $offset ), @$ranges ); my $select_count_pkgs = FS::cust_main->select_count_pkgs_sql; @@ -163,7 +158,6 @@ if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) { #prospect active inactive suspended cancelled if ( grep { $cgi->param('status') eq $_ } FS::cust_main->statuses() ) { my $method = $cgi->param('status'). '_sql'; - #push @where, $class->$method(); push @where, FS::cust_main->$method(); } @@ -222,7 +216,7 @@ if($opt{'payment_links'} && $curuser->access_right('Process payment') && @payby) @pay_labels = (map { my $payby = $_; my $label = $label{$payby}; - sub {($payby eq $_[0]->payby) ? "$label (on file)" : $label} + sub {($payby eq $_[0]->payby) ? "".emt("$label (on file)")."" : emt($label)} } @payby ); @pay_links = (map { [ "${p}misc/payment.cgi?payby=$_;custnum=", 'custnum' ] }