X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Freport_cust_pay_or_refund.html;h=3026605cabbffc69bf2772de21cc13247eb8e563;hb=85c78d955fbc2fd6c3991156b387d37c185b9f64;hp=885457cea7f884642737af9f4a564b4723d6299f;hpb=f48936de00e81e89ea0f84b28e9c7b213fe898a8;p=freeside.git diff --git a/httemplate/search/elements/report_cust_pay_or_refund.html b/httemplate/search/elements/report_cust_pay_or_refund.html index 885457cea..3026605ca 100644 --- a/httemplate/search/elements/report_cust_pay_or_refund.html +++ b/httemplate/search/elements/report_cust_pay_or_refund.html @@ -13,121 +13,162 @@ Examples: ) -<% include('/elements/header.html', $title ) %> +<& /elements/header.html, mt($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' ) %> + <& /elements/tr-select-user.html &> - + % if ( $void ) { - + % } - <% include( '/elements/tr-input-lessthan_greaterthan.html', - 'label' => 'Amount', - 'field' => 'paid', - ) - %> +% if ( $table eq 'cust_pay' ) { + +% # payment batch +% # <& /elements/tr-select-batchnum.html &> + +% #payment "entry" batch (should probably just all become the same thing) + <& /elements/tr-select-paybatch.html &> + +% } + + <& /elements/tr-input-lessthan_greaterthan.html, + 'label' => emt('Amount'), + 'field' => 'paid', + &> + + +
- Search options + <% mt('Payment search options') |h %>
<% ucfirst(PL($name_singular)) %> of type: - + +%# +%# + + + + + + + + + + + + + + + + + + +
Check #: <% mt('Check #:') |h %> - + +
<% mt('Transaction #:') |h %> +
Payment<% mt(ucfirst($name_singular). ' date') |h %> - <% include( '/elements/tr-input-beginning_ending.html', - layout => 'horiz', - ) - %> + <& /elements/tr-input-beginning_ending.html, + layout => 'horiz', + input_time => $conf->exists('report-cust_pay-select_time'), + &>
Voided<% mt('Voided') |h %> - <% include( '/elements/tr-input-beginning_ending.html', + <& /elements/tr-input-beginning_ending.html, prefix => 'void', layout => 'horiz', - ) - %> + &>
+
+ + + + + + + + + <& /elements/tr-select-agent.html, + 'curr_value' => scalar($cgi->param('agentnum')), + 'label' => emt('Agent'), + 'disable_empty' => 0, + &> + + <& /elements/tr-select-cust_class.html, + 'label' => emt('Customer class'), + 'field' => 'cust_classnum', + 'multiple' => 1, + 'pre_options' => [ '' => emt('(none)') ], + 'all_selected' => 1, + &> + +
+ <% mt('Customer search options') |h %> +
% if ( $table eq 'cust_pay' ) { - <% include( '/elements/tr-checkbox.html', - 'label' => 'Include tax names', - 'field' => 'tax_names', + +
+ + + + + + + <& /elements/tr-checkbox.html, + 'label' => emt('Include tax names'), + 'field' => 'tax_names', 'value' => 1, - ) - %> -% } + &>
+ <% mt('Display options') |h %> +
+% } +
- +
-<% include('/elements/footer.html') %> +<& /elements/footer.html &> <%init> my %opt = @_; @@ -137,9 +178,14 @@ my $name_singular = $opt{'name_singular'}; die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Financial reports'); +my $conf = new FS::Conf; + my $void = $cgi->param('void') ? 1 : 0; +my $unapplied = $cgi->param('unapplied') ? 1 : 0; -my $title = $void ? "Voided $name_singular report" : "\u$name_singular report"; +my $title = $void ? "Voided $name_singular report" : + $unapplied ? "Unapplied $name_singular report" : + "\u$name_singular report" ; $table .= '_void' if $void;