summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-02-28 19:32:12 -0800
committerMark Wells <mark@freeside.biz>2016-02-28 19:32:42 -0800
commitb70dda6ff4d619e3e41157977d7b7a9b283aa710 (patch)
treed4e30a0fc90e55a664c093cb15233caaafd45b5e
parentc0e385f485445406f5d13cac9ffc88e460cbd324 (diff)
fix totals on refund report, #40561
-rwxr-xr-xhttemplate/search/elements/cust_pay_or_refund.html4
1 files changed, 2 insertions, 2 deletions
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' => [ '<B>Total</B>',
- sub { sprintf("<B>$money</B>", $_[0]->$amount_field) },
+ sub { warn Dumper @_; sprintf("<B>$money</B>", $_[0]->$amount_field) },
],
'show_combined' => 1,
&>