projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
backport cust_svc_unsorted method from master, RT#26097
[freeside.git]
/
httemplate
/
search
/
477partVI_census.html
diff --git
a/httemplate/search/477partVI_census.html
b/httemplate/search/477partVI_census.html
index
be3a9c0
..
b6a2136
100755
(executable)
--- a/
httemplate/search/477partVI_census.html
+++ b/
httemplate/search/477partVI_census.html
@@
-1,4
+1,4
@@
-<
% include( 'elements/search.html'
,
+<
& elements/search.html
,
'html_init' => '<H2>Part VI</H2>',
'html_foot' => $html_foot,
'name' => 'regions',
'html_init' => '<H2>Part VI</H2>',
'html_foot' => $html_foot,
'name' => 'regions',
@@
-23,8
+23,9
@@
'links' => \@links,
'url' => $opt{url} || '',
'xml_row_element' => 'Datarow',
'links' => \@links,
'url' => $opt{url} || '',
'xml_row_element' => 'Datarow',
- )
-%>
+ 'really_disable_download' => 1,
+
+&>
<%init>
my $curuser = $FS::CurrentUser::CurrentUser;
<%init>
my $curuser = $FS::CurrentUser::CurrentUser;
@@
-76,14
+77,14
@@
push @fields,
},
sub { my $row = shift; sprintf "%.2f", $row->residential },
;
},
sub { my $row = shift; sprintf "%.2f", $row->residential },
;
-push @links, ( [ $link, $link_suffix ] x 8 );
my %search_hash = ();
my @sql_query = ();
my %search_hash = ();
my @sql_query = ();
-for ( qw(agentnum magic) ) {
+for ( qw(agentnum magic
state
) ) {
$search_hash{$_} = $cgi->param($_) if $cgi->param($_);
}
$search_hash{$_} = $cgi->param($_) if $cgi->param($_);
}
+$search_hash{'country'} = 'US';
$search_hash{'classnum'} = [ $cgi->param('classnum') ]
if grep { $_ eq 'classnum' } $cgi->param;
$search_hash{'classnum'} = [ $cgi->param('classnum') ]
if grep { $_ eq 'classnum' } $cgi->param;
@@
-132,11
+133,13
@@
my $count_query = 'SELECT count(*) FROM ( ('.
map { my $addl_from = $_->{addl_from};
my $extra_sql = $_->{extra_sql};
my $order_by = $_->{order_by};
map { my $addl_from = $_->{addl_from};
my $extra_sql = $_->{extra_sql};
my $order_by = $_->{order_by};
- "SELECT censustract from cust_pkg $addl_from $extra_sql $order_by";
+ "SELECT censustract from cust_pkg $addl_from
+ $extra_sql $order_by";
}
@sql_query
). ') ) AS foo';
}
@sql_query
). ') ) AS foo';
+
my $link = 'cust_pkg.cgi?'. join(';',
map { my $key = $_;
my @values = ref($search_hash{$_})
my $link = 'cust_pkg.cgi?'. join(';',
map { my $key = $_;
my @values = ref($search_hash{$_})
@@
-158,6
+161,9
@@
my $link_suffix = sub { my $row = shift;
$result;
};
$result;
};
+for (1..8) { push @links, [ $link, $link_suffix ]; }
+
+
my $html_foot = sub {
if (scalar(keys %state_hash) > 1) {
my $html_foot = sub {
if (scalar(keys %state_hash) > 1) {