[freeside-commits] branch master updated. c89f59f7093eb0a11d3a15854e35d5f78f4424be

Ivan ivan at 420.am
Mon Mar 18 00:21:17 PDT 2013


The branch, master has been updated
       via  c89f59f7093eb0a11d3a15854e35d5f78f4424be (commit)
      from  b386703c6dee3eafb59f683710aa1aab27bf180e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c89f59f7093eb0a11d3a15854e35d5f78f4424be
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Mar 18 00:21:14 2013 -0700

    config to enable cust_pay report time selection, RT#22001

diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index 51a3f62..4842f67 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -5406,6 +5406,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 => "<b>DEPRECATED</b>", type => "text" },
   { key => "apachemachine", section => "deprecated", description => "<b>DEPRECATED</b>", type => "text" },
   { key => "apachemachines", section => "deprecated", description => "<b>DEPRECATED</b>", 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 c79c3ab..0462f1c 100644
--- a/httemplate/search/elements/report_cust_pay_or_refund.html
+++ b/httemplate/search/elements/report_cust_pay_or_refund.html
@@ -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;
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Conf.pm                                      |    7 +++++++
 .../search/elements/report_cust_pay_or_refund.html |    4 +++-
 2 files changed, 10 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list