diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-01-29 21:56:05 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-01-29 21:56:05 -0800 |
commit | 82f20c89d63c5b1ef3b2106370a44d030fd26453 (patch) | |
tree | c912360b7a884aa5217d6b32bc2ccae8af0794f9 | |
parent | 9c78a52fcd35d7d0c39a4798d583ca4d7b20fd73 (diff) |
sales person report w/package breakdown, RT#22090
-rw-r--r-- | httemplate/search/report_sales_commission.html | 34 |
1 files changed, 3 insertions, 31 deletions
diff --git a/httemplate/search/report_sales_commission.html b/httemplate/search/report_sales_commission.html index 19af428d8..9ad9e6a45 100644 --- a/httemplate/search/report_sales_commission.html +++ b/httemplate/search/report_sales_commission.html @@ -4,34 +4,7 @@ <TABLE BGCOLOR="#cccccc" CELLSPACING=0> -% if ( $curuser->report_salesnum ) { - - <INPUT TYPE="hidden" NAME="agentnum" VALUE="<% $curuser->report_sales->agentnum %>"> - <INPUT TYPE="hidden" NAME="salesnum" VALUE="<% $curuser->report_salesnum %>"> - -% } else { - - <& /elements/tr-select-agent.html, - 'onchange' => 'agent_changed(this)', - &> - - <SCRIPT TYPE="text/javascript"> - - function agent_changed(what) { - salesnum_agentnum_changed(what); - } - - <&| /elements/onload.js &> - agent_changed(document.getElementById('agentnum')) - </&> - - </SCRIPT> - - <& /elements/tr-select-sales.html, - 'empty_label' => 'all', - &> - -% } +<& /elements/tr-select-agent-sales.html &> <& /elements/tr-checkbox.html, 'label' => 'Customer sales person if there is no package sales person', @@ -55,8 +28,7 @@ <% include('/elements/footer.html') %> <%init> -my $curuser = $FS::CurrentUser::CurrentUser; - -die "access denied" unless $curuser->access_right('Financial reports'); +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Financial reports'); </%init> |