summaryrefslogtreecommitdiff
path: root/httemplate/search/report_cust_pkg.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-08-25 16:23:17 -0700
committerIvan Kohler <ivan@freeside.biz>2013-08-25 16:23:17 -0700
commitc14b35ce12141287e201bba8489b202a1b34b38f (patch)
treed897217561389649f4b4777e480ab2e115668d54 /httemplate/search/report_cust_pkg.html
parentd29b455cf176358089f98e2970beaab88195bc62 (diff)
continue sales person work: customer and package selection, commissions, reporting. RT#23402
Diffstat (limited to 'httemplate/search/report_cust_pkg.html')
-rwxr-xr-xhttemplate/search/report_cust_pkg.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/httemplate/search/report_cust_pkg.html b/httemplate/search/report_cust_pkg.html
index 6cf297c91..0a17344b8 100755
--- a/httemplate/search/report_cust_pkg.html
+++ b/httemplate/search/report_cust_pkg.html
@@ -16,9 +16,24 @@
<% include( '/elements/tr-select-agent.html',
'curr_value' => scalar( $cgi->param('agentnum') ),
'disable_empty' => 0,
+ 'onchange' => 'agent_changed(this)',
)
%>
+ <SCRIPT TYPE="text/javascript">
+
+ function agent_changed(what) {
+% # update sales dropdowns
+ salesnum_agentnum_changed(what);
+ cust_main_salesnum_agentnum_changed(what);
+ }
+
+ <&| /elements/onload.js &>
+ agent_changed(document.getElementById('agentnum'))
+ </&>
+
+ </SCRIPT>
+
<& /elements/tr-select-sales.html,
'label' => 'Customer sales person',
'element_name' => 'cust_main_salesnum',