deposit slips
[freeside.git] / httemplate / search / elements / grouped-search / html
index 28d0040..24cf50e 100644 (file)
@@ -34,7 +34,7 @@ my $footer = $group_info->{group_footers}[$curr_group];
 my $total_footer =  $group_info->{total_footer} || [];
 # pagination
 my ($limit, $offset);
-my $maxrecords = $conf->config('maxsearchrecordsperpage') || 50;
+my $maxrecords = $conf->config('maxsearchrecordsperpage') || 100;
 if ( $cgi->param('maxrecords') =~ /^(\d+)$/ ) {
   $maxrecords = $1;
 }
@@ -90,6 +90,8 @@ if ($group_info->{num} > 1) {
 #  }
 #}
 
+my $conf = FS::Conf->new;
+my $money = $conf->config('money_char') || '$';
 </%init>
 
 <& /elements/header.html, $opt{title} &>
@@ -107,14 +109,18 @@ if ($group_info->{num} > 1) {
 
 <DIV CLASS="fstabcontainer">
 % if ( $group->num_rows > 0 ) {
-<P><% emt('[quant,_1,_2]', $group->num_rows, $opt{name_singular}) %>
+<P><% emt('[quant,_1,_2]', $group->num_rows, $opt{name_singular}) %> for <% emt($money.$group->paid) %>
 </P>
 %# download links
 <P><% emt('Download results:') %>
 % $cgi->param('type', 'xls');
-<A HREF="<% $cgi->self_url %>"><% emt('Spreadsheet') %></A>&nbsp;|&nbsp;
+<A HREF="<% $cgi->self_url %>"><% emt('Spreadsheet') %></A> | 
 % $cgi->param('type', 'html-print');
 <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>
 % }