[freeside-commits] branch FREESIDE_3_BRANCH updated. b70dda6ff4d619e3e41157977d7b7a9b283aa710

Mark Wells mark at 420.am
Sun Feb 28 19:33:02 PST 2016


The branch, FREESIDE_3_BRANCH has been updated
       via  b70dda6ff4d619e3e41157977d7b7a9b283aa710 (commit)
      from  c0e385f485445406f5d13cac9ffc88e460cbd324 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b70dda6ff4d619e3e41157977d7b7a9b283aa710
Author: Mark Wells <mark at freeside.biz>
Date:   Sun Feb 28 19:32:12 2016 -0800

    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 697cf84..7d7fb73 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,
 &>

-----------------------------------------------------------------------

Summary of changes:
 httemplate/search/elements/cust_pay_or_refund.html |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list