X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cust_bill.html;h=892f5c4d97bd2e50cd7fccab6cea409809401f72;hb=e68a2c760a79d6085f12be9add138067c9935074;hp=f1b7bfa14e3a8cb7d266383dbe0cee8923aea61b;hpb=2c757d7db4cb6a7b9655de13206fcc84fb7ce61f;p=freeside.git diff --git a/httemplate/search/report_cust_bill.html b/httemplate/search/report_cust_bill.html index f1b7bfa14..892f5c4d9 100644 --- a/httemplate/search/report_cust_bill.html +++ b/httemplate/search/report_cust_bill.html @@ -1,15 +1,15 @@ -<%= include('/elements/header.html', 'Invoice report criteria' ) %> +<% include('/elements/header.html', 'Invoice report criteria' ) %>
- <%= include( '/elements/tr-select-agent.html', - $cgi->param('agentnum'), - 'label' => 'Invoices for agent: ', + <% include( '/elements/tr-select-agent.html', + 'curr_value' => scalar( $cgi->param('agentnum') ), + 'label' => 'Invoices for agent: ', ) %> - <%= include( '/elements/tr-input-beginning_ending.html' ) %> + <% include( '/elements/tr-input-beginning_ending.html' ) %> @@ -25,4 +25,10 @@ -<%= include('/elements/footer.html') %> +<% include('/elements/footer.html') %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('List invoices'); + +
Show only open invoices