diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-11-17 22:54:52 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-11-17 22:54:52 -0800 |
commit | e77413eda0cd0e13d0acd9edaae9fe1451248346 (patch) | |
tree | 42ada2da55c8b38f21abb64dac343f00fc8833c2 | |
parent | c3d33450dd1d457bc8b8c008fe17ffc9128201b1 (diff) |
sort by customer number on line item detail report, RT#26025
-rw-r--r-- | FS/FS/UI/Web.pm | 8 | ||||
-rw-r--r-- | httemplate/search/cust_bill_pkg.cgi | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index d7f998bdf..e31ff14a5 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 d86641de3..f87862a3d 100644 --- a/httemplate/search/cust_bill_pkg.cgi +++ b/httemplate/search/cust_bill_pkg.cgi @@ -49,8 +49,9 @@ @currency, 'invnum', '_date', - #'pay_amount', - #'credit_amount', + '', #'pay_amount', + '', #'credit_amount', + FS::UI::Web::cust_sort_fields(), ], 'links' => [ @pkgnum_null, |