X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fgrouped-search%2Fhtml;h=cb9c96ce6157db37fb6983d58bef904290fa6051;hp=c1fd9bd5e5c25ebf16644e0a1baffe7a2225ee31;hb=f30eaaf66cd0a947f388a03edd4522ba92a367bb;hpb=d8648be92fa4c30d9ca4377dc0ac8816438e1370 diff --git a/httemplate/search/elements/grouped-search/html b/httemplate/search/elements/grouped-search/html index c1fd9bd5e..cb9c96ce6 100644 --- a/httemplate/search/elements/grouped-search/html +++ b/httemplate/search/elements/grouped-search/html @@ -5,6 +5,8 @@ my $conf = FS::Conf->new; my %opt = @_; $opt{'name'} ||= PL($opt{'name_singular'}); +my $amount_field = $opt{amount_field}; + my $group_info = $m->comp('core', %opt); my $redirect; @@ -90,6 +92,8 @@ if ($group_info->{num} > 1) { # } #} +my $conf = FS::Conf->new; +my $money = $conf->config('money_char') || '$'; <& /elements/header.html, $opt{title} &> @@ -107,14 +111,18 @@ if ($group_info->{num} > 1) {
% if ( $group->num_rows > 0 ) { -

<% emt('[quant,_1,_2]', $group->num_rows, $opt{name_singular}) %> +

<% emt('[quant,_1,_2]', $group->num_rows, $opt{name_singular}) %> for <% emt($money.$group->$amount_field()) %>

%# download links

<% emt('Download results:') %> % $cgi->param('type', 'xls'); -<% emt('Spreadsheet') %> |  +<% emt('Spreadsheet') %> | % $cgi->param('type', 'html-print'); <% emt('webpage') %> +% if ( ref($query) && $query->{table} eq 'cust_pay' ) { +% $cgi->param('type', 'deposit_slip'); + | <% emt('deposit slip') %> +% } % $cgi->delete('type');

% }