From: Ivan Kohler Date: Thu, 30 Jan 2014 05:56:05 +0000 (-0800) Subject: sales person report w/package breakdown, RT#22090 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=82f20c89d63c5b1ef3b2106370a44d030fd26453 sales person report w/package breakdown, RT#22090 --- 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 @@ -% if ( $curuser->report_salesnum ) { - - - - -% } else { - - <& /elements/tr-select-agent.html, - 'onchange' => 'agent_changed(this)', - &> - - - - <& /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');