projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix top subtotals on refund reports
[freeside.git]
/
httemplate
/
search
/
elements
/
grouped-search
/
html
diff --git
a/httemplate/search/elements/grouped-search/html
b/httemplate/search/elements/grouped-search/html
index
293da33
..
cb9c96c
100644
(file)
--- a/
httemplate/search/elements/grouped-search/html
+++ b/
httemplate/search/elements/grouped-search/html
@@
-5,14
+5,16
@@
my $conf = FS::Conf->new;
my %opt = @_;
$opt{'name'} ||= PL($opt{'name_singular'});
my %opt = @_;
$opt{'name'} ||= PL($opt{'name_singular'});
+my $amount_field = $opt{amount_field};
+
my $group_info = $m->comp('core', %opt);
my $redirect;
if ( $group_info->{num} == 0 ) {
$redirect = $opt{'redirect_empty'};
my $group_info = $m->comp('core', %opt);
my $redirect;
if ( $group_info->{num} == 0 ) {
$redirect = $opt{'redirect_empty'};
+ $redirect = &$redirect($cgi) if $redirect && ref($redirect) eq 'CODE';
if ($redirect) {
if ($redirect) {
- $redirect = &$redirect($cgi) if ref($redirect) eq 'CODE';
redirect( $redirect );
} else { # just print this stuff and exit
$m->comp('/elements/header.html', $opt{'title'});
redirect( $redirect );
} else { # just print this stuff and exit
$m->comp('/elements/header.html', $opt{'title'});
@@
-34,7
+36,7
@@
my $footer = $group_info->{group_footers}[$curr_group];
my $total_footer = $group_info->{total_footer} || [];
# pagination
my ($limit, $offset);
my $total_footer = $group_info->{total_footer} || [];
# pagination
my ($limit, $offset);
-my $maxrecords = $conf->config('maxsearchrecordsperpage') ||
5
0;
+my $maxrecords = $conf->config('maxsearchrecordsperpage') ||
10
0;
if ( $cgi->param('maxrecords') =~ /^(\d+)$/ ) {
$maxrecords = $1;
}
if ( $cgi->param('maxrecords') =~ /^(\d+)$/ ) {
$maxrecords = $1;
}
@@
-90,6
+92,8
@@
if ($group_info->{num} > 1) {
# }
#}
# }
#}
+my $conf = FS::Conf->new;
+my $money = $conf->config('money_char') || '$';
</%init>
<& /elements/header.html, $opt{title} &>
</%init>
<& /elements/header.html, $opt{title} &>
@@
-106,14
+110,22
@@
if ($group_info->{num} > 1) {
&>
<DIV CLASS="fstabcontainer">
&>
<DIV CLASS="fstabcontainer">
+% if ( $group->num_rows > 0 ) {
+<P><% emt('[quant,_1,_2]', $group->num_rows, $opt{name_singular}) %> for <% emt($money.$group->$amount_field()) %>
+</P>
%# download links
%# download links
-<P><% emt('Download
full results') %><BR
>
+<P><% emt('Download
results:') %
>
% $cgi->param('type', 'xls');
% $cgi->param('type', 'xls');
-<A HREF="<% $cgi->self_url %>"><% emt('
as Excel spreadsheet') %></A><BR>
+<A HREF="<% $cgi->self_url %>"><% emt('
Spreadsheet') %></A> |
% $cgi->param('type', 'html-print');
% $cgi->param('type', 'html-print');
-<A HREF="<% $cgi->self_url %>"><% emt('as printable copy') %></A><BR>
+<A HREF="<% $cgi->self_url %>"><% emt('webpage') %></A>
+% if ( ref($query) && $query->{table} eq 'cust_pay' ) {
+% $cgi->param('type', 'deposit_slip');
+ | <A HREF="<% $cgi->self_url %>"><% emt('deposit slip') %></A>
+% }
% $cgi->delete('type');
</P>
% $cgi->delete('type');
</P>
+% }
<% $pager %>
<% $pager %>