X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cust_pay.html;h=1dc1d7a7d5be4ccf628844799844fbba364c38b3;hb=7a7bcda9d75c951df9c911ce60d5b0551765daf2;hp=8adf7dc1307eff89e03a27d76ea54d6b5d85148e;hpb=2c757d7db4cb6a7b9655de13206fcc84fb7ce61f;p=freeside.git diff --git a/httemplate/search/report_cust_pay.html b/httemplate/search/report_cust_pay.html index 8adf7dc13..1dc1d7a7d 100644 --- a/httemplate/search/report_cust_pay.html +++ b/httemplate/search/report_cust_pay.html @@ -1,14 +1,20 @@ -<%= include('/elements/header.html', 'Payment report' ) %> +<% include('/elements/header.html', $title ) %> -
+ - +
+ + + + - <%= include( '/elements/tr-select-agent.html', - $cgi->param('agentnum'), - 'label' => 'for agent: ', + + + + + + + + <% include( '/elements/tr-select-agent.html', + 'curr_value' => scalar($cgi->param('agentnum')), + 'label' => 'for agent: ', + 'disable_empty' => 0, ) %> - <%= include( '/elements/tr-input-beginning_ending.html' ) %> + <% include( '/elements/tr-select-otaker.html' ) %> + + + + + + +% if ( $void ) { + + + + +% } + + <% include( '/elements/tr-input-lessthan_greaterthan.html', + 'label' => 'Amount', + 'field' => 'paid', + ) + %>
+ Search options +
Payments of type: - @@ -25,13 +31,70 @@
Check #: + +
Payment + + <% include( '/elements/tr-input-beginning_ending.html', + layout => 'horiz', + ) + %> +
+
Voided + + <% include( '/elements/tr-input-beginning_ending.html', + prefix => 'void', + layout => 'horiz', + ) + %> +
+
@@ -40,4 +103,14 @@
-<%= include('/elements/footer.html') %> +<% include('/elements/footer.html') %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Financial reports'); + +my $void = $cgi->param('void') ? 1 : 0; + +my $title = $void ? 'Voided payment report' : 'Payment report'; + +