diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2013-08-25 16:23:24 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2013-08-25 16:23:24 -0700 |
| commit | b799e8a48e0ea4e192d51fc445c3bee14c55e687 (patch) | |
| tree | 8999983af320ad173d75a3e1898e2c58bd71aedb /httemplate/search | |
| parent | 48e4ae69f730dba65c2f1428e9b1c408824c6a45 (diff) | |
continue sales person work: customer and package selection, commissions, reporting. RT#23402
Diffstat (limited to 'httemplate/search')
| -rwxr-xr-x | httemplate/search/report_cust_pkg.html | 15 |
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', |
