diff options
author | Ivan Kohler <ivan@freeside.biz> | 2020-05-27 13:44:33 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2020-05-27 13:44:33 -0700 |
commit | f30eaaf66cd0a947f388a03edd4522ba92a367bb (patch) | |
tree | ba160b3c0364655520f6b3844e514c28839346a0 /httemplate/search/elements/grouped-search/html | |
parent | fc263806f5e475559a0c4cfdb70a5f1cefe0ffa3 (diff) |
fix top subtotals on refund reports
Diffstat (limited to 'httemplate/search/elements/grouped-search/html')
-rw-r--r-- | httemplate/search/elements/grouped-search/html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/search/elements/grouped-search/html b/httemplate/search/elements/grouped-search/html index 24cf50e..cb9c96c 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; @@ -109,7 +111,7 @@ my $money = $conf->config('money_char') || '$'; <DIV CLASS="fstabcontainer"> % if ( $group->num_rows > 0 ) { -<P><% emt('[quant,_1,_2]', $group->num_rows, $opt{name_singular}) %> for <% emt($money.$group->paid) %> +<P><% emt('[quant,_1,_2]', $group->num_rows, $opt{name_singular}) %> for <% emt($money.$group->$amount_field()) %> </P> %# download links <P><% emt('Download results:') %> |