X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_agent_commission.html;h=41f40bf22fb41026e7e36ba244592918b984a896;hb=998b32d356338772484814a477d9efb159206b8d;hp=79f94c52e47472e10556338a0c2d5519cda1da89;hpb=968a0f3089c4e0e18ec2c72f5a0917188b1dffc1;p=freeside.git
diff --git a/httemplate/search/report_agent_commission.html b/httemplate/search/report_agent_commission.html
index 79f94c52e..41f40bf22 100644
--- a/httemplate/search/report_agent_commission.html
+++ b/httemplate/search/report_agent_commission.html
@@ -4,9 +4,15 @@
-<% include( '/elements/tr-select-agent.html', disable_empty => 1 ) %>
+<& /elements/tr-select-agent.html &>
-<% include( '/elements/tr-input-beginning_ending.html', ) %>
+<& /elements/tr-checkbox.html,
+ 'label' => 'Show paid sales only',
+ 'field' => 'paid',
+ 'value' => 'Y',
+&>
+
+<& /elements/tr-input-beginning_ending.html &>
@@ -16,7 +22,8 @@
<% include('/elements/footer.html') %>
<%init>
-die "access denied"
- unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
+my $curuser = $FS::CurrentUser::CurrentUser;
+
+die "access denied" unless $curuser->access_right('Financial reports');
%init>