X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Freport_cust_pay_or_refund.html;h=9c4ca2761db3efdd97dc5d8e0a60aadf3c2aea42;hb=8d953e7c2f94dc007d94da74650d27c5a74cc792;hp=0e04ab0dd35dab74bf317d04eccf532743b948b4;hpb=7a618d4493ab7a87f6eabfd1ce3630a6b3436c2f;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 0e04ab0dd..9c4ca2761 100644
--- a/httemplate/search/elements/report_cust_pay_or_refund.html
+++ b/httemplate/search/elements/report_cust_pay_or_refund.html
@@ -23,92 +23,63 @@ Examples:
- <% mt('Search options') |h %>
+ <% mt('Payment search options') |h %>
|
<% ucfirst(PL($name_singular)) %> of type: |
- |
-
-
- <% mt('Check #:') |h %> |
+ <% mt('Check #:') |h %> |
-
+
|
-
-
- <% mt('Transaction #') |h %>
-
- |
+ <% mt('Transaction #:') |h %> |
-
+
|
- <& /elements/tr-select-agent.html,
- 'curr_value' => scalar($cgi->param('agentnum')),
- 'label' => emt('for agent: '),
- 'disable_empty' => 0,
- &>
-
<& /elements/tr-select-user.html &>
- <% mt('Payment') |h %> |
+ <% mt(ucfirst($name_singular). ' date') |h %> |
<& /elements/tr-input-beginning_ending.html,
- layout => 'horiz',
+ layout => 'horiz',
+ input_time => $conf->exists('report-cust_pay-select_time'),
&>
|
@@ -128,21 +99,71 @@ Examples:
% }
+% 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',
&>
+
+
+
+
+
+
+
+
+
+ <% mt('Customer search options') |h %>
+ |
+
+
+ <& /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,
+ &>
+
+
+
% if ( $table eq 'cust_pay' ) {
+
+
+
+
+
+
+ <% mt('Display options') |h %>
+ |
+
+
<& /elements/tr-checkbox.html,
'label' => emt('Include tax names'),
'field' => 'tax_names',
'value' => 1,
&>
-% }
+% }
+
@@ -158,6 +179,8 @@ 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;