[freeside-commits] branch FREESIDE_3_BRANCH updated. 9b9cbf2f56e22dd42a49a993df0a557d6b43b9cc
Ivan
ivan at 420.am
Thu Oct 10 23:13:11 PDT 2013
The branch, FREESIDE_3_BRANCH has been updated
via 9b9cbf2f56e22dd42a49a993df0a557d6b43b9cc (commit)
from 044e3bcb6bbe6d011116b4a0cfa49023e6c391f0 (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 9b9cbf2f56e22dd42a49a993df0a557d6b43b9cc
Author: Ivan Kohler <ivan at freeside.biz>
Date: Thu Oct 10 23:13:10 2013 -0700
add customer status to advanced package report, RT#24631
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index 6124ad4..72c1bb1 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -4135,6 +4135,14 @@ sub search {
}
##
+ # parse cust_status
+ ##
+
+ if ( $params->{'cust_status'} =~ /^([a-z]+)$/ ) {
+ push @where, FS::cust_main->cust_status_sql . " = '$1' ";
+ }
+
+ ##
# parse customer sales person
##
diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi
index 32b5a69..995779a 100755
--- a/httemplate/search/cust_pkg.cgi
+++ b/httemplate/search/cust_pkg.cgi
@@ -156,8 +156,8 @@ my %search_hash = ();
$search_hash{'query'} = $cgi->keywords;
#scalars
-for (qw( agentnum cust_main_salesnum salesnum custnum magic status custom
- cust_fields pkgbatch
+for (qw( agentnum cust_status cust_main_salesnum salesnum custnum magic status
+ custom cust_fields pkgbatch
))
{
$search_hash{$_} = $cgi->param($_) if length($cgi->param($_));
diff --git a/httemplate/search/report_cust_pkg.html b/httemplate/search/report_cust_pkg.html
index 0a17344..b8c32c6 100755
--- a/httemplate/search/report_cust_pkg.html
+++ b/httemplate/search/report_cust_pkg.html
@@ -13,12 +13,17 @@
</TR>
% unless ( $custnum ) {
- <% include( '/elements/tr-select-agent.html',
+
+ <& /elements/tr-select-agent.html,
'curr_value' => scalar( $cgi->param('agentnum') ),
'disable_empty' => 0,
'onchange' => 'agent_changed(this)',
- )
- %>
+ &>
+
+ <& /elements/tr-select-cust_main-status.html,
+ 'label' => 'Customer status',
+ 'field' => 'cust_status',
+ &>
<SCRIPT TYPE="text/javascript">
@@ -55,6 +60,7 @@
&>
<% include( '/elements/tr-select-cust_pkg-status.html',
+ 'label' => 'Package status',
'onchange' => 'status_changed(this);',
)
%>
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_pkg.pm | 8 ++++++++
httemplate/search/cust_pkg.cgi | 4 ++--
httemplate/search/report_cust_pkg.html | 12 +++++++++---
3 files changed, 19 insertions(+), 5 deletions(-)
More information about the freeside-commits
mailing list