config to enable cust_pay report time selection, RT#22001
[freeside.git] / httemplate / search / elements / report_cust_pay_or_refund.html
index c79c3ab..0462f1c 100644 (file)
@@ -74,7 +74,7 @@ Examples:
       <TABLE>
         <& /elements/tr-input-beginning_ending.html,
                       layout     => 'horiz',
-                      input_time => 1,
+                      input_time => $conf->exists('report-cust_pay-select_time'),
         &>
       </TABLE>
     </TD>
@@ -124,6 +124,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;