[freeside-commits] branch FREESIDE_3_BRANCH updated. d705687fb371ac04ed371ce2de8a4bb2fc25ee18

Ivan ivan at 420.am
Sun Nov 17 22:54:55 PST 2013


The branch, FREESIDE_3_BRANCH has been updated
       via  d705687fb371ac04ed371ce2de8a4bb2fc25ee18 (commit)
      from  dc94d71c66bc1c6fb3211fc553283ce9bb050dbd (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 d705687fb371ac04ed371ce2de8a4bb2fc25ee18
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sun Nov 17 22:54:53 2013 -0800

    sort by customer number on line item detail report, RT#26025

diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm
index 70b0c47..c1a0f11 100644
--- a/FS/FS/UI/Web.pm
+++ b/FS/FS/UI/Web.pm
@@ -323,6 +323,14 @@ sub cust_header {
   @cust_header;
 }
 
+sub cust_sort_fields {
+  cust_header(@_);
+  #inefficientish, but tiny lists and only run once per page
+
+  map { $_ eq 'custnum' ? 'custnum' : '' } @cust_fields;
+
+}
+
 =item cust_sql_fields [ CUST_FIELDS_VALUE ]
 
 Returns a list of fields for the SELECT portion of an SQL query.
diff --git a/httemplate/search/cust_bill_pkg.cgi b/httemplate/search/cust_bill_pkg.cgi
index bbecb19..6e110d6 100644
--- a/httemplate/search/cust_bill_pkg.cgi
+++ b/httemplate/search/cust_bill_pkg.cgi
@@ -46,8 +46,9 @@
                    @peritem,
                    'invnum',
                    '_date',
-                   #'pay_amount',
-                   #'credit_amount',
+                   '', #'pay_amount',
+                   '', #'credit_amount',
+                   FS::UI::Web::cust_sort_fields(),
                  ],
                  'links'       => [
                    @pkgnum_null,

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

Summary of changes:
 FS/FS/UI/Web.pm                     |    8 ++++++++
 httemplate/search/cust_bill_pkg.cgi |    5 +++--
 2 files changed, 11 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list