From: Mark Wells Date: Mon, 29 Feb 2016 03:32:12 +0000 (-0800) Subject: fix totals on refund report, #40561 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=9ece94ae50eaa9c326fc801d904565bbbd28b9ed fix totals on refund report, #40561 --- diff --git a/httemplate/search/elements/cust_pay_or_refund.html b/httemplate/search/elements/cust_pay_or_refund.html index 697cf844b..7d7fb73e9 100755 --- a/httemplate/search/elements/cust_pay_or_refund.html +++ b/httemplate/search/elements/cust_pay_or_refund.html @@ -58,12 +58,12 @@ Examples: 'group_column' => 'payby', 'group_label' => 'payby_name', - 'subtotal' => { $opt{name_verb} => "sum($amount_field)" }, + 'subtotal' => { $opt{amount_field} => "sum($amount_field)" }, 'subtotal_row' => [ 'Subtotal', sub { sprintf($money, $_[0]->$amount_field) }, ], 'total_row' => [ 'Total', - sub { sprintf("$money", $_[0]->$amount_field) }, + sub { warn Dumper @_; sprintf("$money", $_[0]->$amount_field) }, ], 'show_combined' => 1, &>