summaryrefslogtreecommitdiff
path: root/httemplate/search
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-08-23 23:10:52 -0700
committerIvan Kohler <ivan@freeside.biz>2013-08-23 23:10:52 -0700
commit23f2db6452f097640447b9b35dd106f408dbc20b (patch)
tree4a64133267a9dd546e869f8936a0652af6af79f5 /httemplate/search
parent5fa459e35a04b69cbdc6b5b938eabcbc1bac6c74 (diff)
continue sales person work: customer and package selection, commissions, reporting. RT#23402
Diffstat (limited to 'httemplate/search')
-rwxr-xr-xhttemplate/search/cust_main.html4
-rwxr-xr-xhttemplate/search/cust_pkg.cgi7
-rwxr-xr-xhttemplate/search/report_cust_main.html7
-rwxr-xr-xhttemplate/search/report_cust_pkg.html19
4 files changed, 33 insertions, 4 deletions
diff --git a/httemplate/search/cust_main.html b/httemplate/search/cust_main.html
index 24348ff8a..66a3a9825 100755
--- a/httemplate/search/cust_main.html
+++ b/httemplate/search/cust_main.html
@@ -41,7 +41,7 @@ my %search_hash = ();
#scalars
my @scalars = qw (
- agentnum status address zip paydate_year paydate_month invoice_terms
+ agentnum salesnum status address zip paydate_year paydate_month invoice_terms
no_censustract with_geocode with_email POST no_POST
custbatch usernum
cancelled_pkgs
@@ -51,7 +51,7 @@ my @scalars = qw (
for my $param ( @scalars ) {
$search_hash{$param} = scalar( $cgi->param($param) )
- if $cgi->param($param);
+ if length($cgi->param($param));
}
#lists
diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi
index 1cb61bccb..32b5a69e8 100755
--- a/httemplate/search/cust_pkg.cgi
+++ b/httemplate/search/cust_pkg.cgi
@@ -156,8 +156,11 @@ my %search_hash = ();
$search_hash{'query'} = $cgi->keywords;
#scalars
-for (qw( agentnum custnum magic status custom cust_fields pkgbatch )) {
- $search_hash{$_} = $cgi->param($_) if $cgi->param($_);
+for (qw( agentnum cust_main_salesnum salesnum custnum magic status custom
+ cust_fields pkgbatch
+ ))
+{
+ $search_hash{$_} = $cgi->param($_) if length($cgi->param($_));
}
#arrays
diff --git a/httemplate/search/report_cust_main.html b/httemplate/search/report_cust_main.html
index bac4346cf..ebff7fadb 100755
--- a/httemplate/search/report_cust_main.html
+++ b/httemplate/search/report_cust_main.html
@@ -14,6 +14,13 @@
'disable_empty' => 0,
&>
+ <& /elements/tr-select-sales.html,
+ 'curr_value' => scalar($cgi->param('salesnum')),
+ 'pre_options' => [ '' => 'all',
+ 0 => '(none)', ],
+ 'disable_empty' => 1,
+ &>
+
<& /elements/tr-select-cust_main-status.html,
'label' => emt('Status'),
&>
diff --git a/httemplate/search/report_cust_pkg.html b/httemplate/search/report_cust_pkg.html
index e47bbb1e5..6cf297c91 100755
--- a/httemplate/search/report_cust_pkg.html
+++ b/httemplate/search/report_cust_pkg.html
@@ -18,8 +18,27 @@
'disable_empty' => 0,
)
%>
+
+ <& /elements/tr-select-sales.html,
+ 'label' => 'Customer sales person',
+ 'element_name' => 'cust_main_salesnum',
+ 'id' => 'cust_main_salesnum',
+ 'curr_value' => scalar($cgi->param('cust_main_salesnum')),
+ 'pre_options' => [ '' => 'all',
+ 0 => '(none)', ],
+ 'disable_empty' => 1,
+ &>
+
% }
+ <& /elements/tr-select-sales.html,
+ 'label' => 'Package sales person',
+ 'curr_value' => scalar($cgi->param('salesnum')),
+ 'pre_options' => [ '' => 'all',
+ 0 => '(none)', ],
+ 'disable_empty' => 1,
+ &>
+
<% include( '/elements/tr-select-cust_pkg-status.html',
'onchange' => 'status_changed(this);',
)