<%doc> Examples: include( 'elements/report_cust_pay_or_refund.html', 'thing' => 'pay', 'name_singular' => 'payment', ) include( 'elements/report_cust_pay_or_refund.html', 'thing' => 'refund', 'name_singular' => 'refund', ) <% include('/elements/header.html', $title ) %>
<% include( '/elements/tr-select-agent.html', 'curr_value' => scalar($cgi->param('agentnum')), 'label' => 'for agent: ', 'disable_empty' => 0, ) %> <% include( '/elements/tr-select-user.html' ) %> % if ( $void ) { % } <% include( '/elements/tr-input-lessthan_greaterthan.html', 'label' => 'Amount', 'field' => 'paid', ) %> % if ( $table eq 'cust_pay' ) { <% include( '/elements/tr-checkbox.html', 'label' => 'Include tax names', 'field' => 'tax_names', 'value' => 1, ) %> % }
Search options
<% ucfirst(PL($name_singular)) %> of type:
Check #:
Payment <% include( '/elements/tr-input-beginning_ending.html', layout => 'horiz', ) %>
Voided <% include( '/elements/tr-input-beginning_ending.html', prefix => 'void', layout => 'horiz', ) %>

<% include('/elements/footer.html') %> <%init> my %opt = @_; my $table = 'cust_'.$opt{'thing'}; my $name_singular = $opt{'name_singular'}; die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Financial reports'); my $void = $cgi->param('void') ? 1 : 0; my $unapplied = $cgi->param('unapplied') ? 1 : 0; my $title = $void ? "Voided $name_singular report" : $unapplied ? "Unapplied $name_singular report" : "\u$name_singular report" ; $table .= '_void' if $void;