From c824028e0d2c74076f5b4b5e159b6dcc42d0e812 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 18 Mar 2013 00:21:18 -0700 Subject: [PATCH] config to enable cust_pay report time selection, RT#22001 --- FS/FS/Conf.pm | 7 +++++++ httemplate/search/elements/report_cust_pay_or_refund.html | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 2b9f7b99d..3c47260df 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -5258,6 +5258,13 @@ and customer address. Include units.', 'type' => 'text', }, + { + 'key' => 'report-cust_pay-select_time', + 'section' => 'UI', + 'description' => 'Enable time selection on payment and refund reports.', + 'type' => 'checkbox', + }, + { key => "apacheroot", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachine", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachines", section => "deprecated", description => "DEPRECATED", type => "text" }, diff --git a/httemplate/search/elements/report_cust_pay_or_refund.html b/httemplate/search/elements/report_cust_pay_or_refund.html index 0a118e9d2..026b83df1 100644 --- a/httemplate/search/elements/report_cust_pay_or_refund.html +++ b/httemplate/search/elements/report_cust_pay_or_refund.html @@ -84,7 +84,7 @@ Examples: <& /elements/tr-input-beginning_ending.html, layout => 'horiz', - input_time => 1, + input_time => $conf->exists('report-cust_pay-select_time'), &>
@@ -134,6 +134,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; -- 2.11.0