[freeside-commits] branch master updated. a9bb74be91910903f8813bc92af06df8368c5379

Ivan ivan at 420.am
Wed Mar 13 18:27:38 PDT 2013


The branch, master has been updated
       via  a9bb74be91910903f8813bc92af06df8368c5379 (commit)
      from  80cf2cf71008a16ceec18d90711428ba148ca7b3 (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 a9bb74be91910903f8813bc92af06df8368c5379
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Mar 13 18:27:37 2013 -0700

    add time to payment report, RT#21061

diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm
index d6f183d..d31bbf0 100644
--- a/FS/FS/UI/Web.pm
+++ b/FS/FS/UI/Web.pm
@@ -32,15 +32,19 @@ sub parse_beginning_ending {
   my $beginning = 0;
   if ( $cgi->param($prefix.'begin') =~ /^(\d+)$/ ) {
     $beginning = $1;
-  } elsif ( $cgi->param($prefix.'beginning') =~ /^([ 0-9\-\/]{1,64})$/ ) {
+  } elsif ( $cgi->param($prefix.'beginning') =~ /^([ 0-9\-\/\:]{1,64})$/ ) {
     $beginning = parse_datetime($1) || 0;
   }
 
   my $ending = 4294967295; #2^32-1
   if ( $cgi->param($prefix.'end') =~ /^(\d+)$/ ) {
     $ending = $1 - 1;
-  } elsif ( $cgi->param($prefix.'ending') =~ /^([ 0-9\-\/]{1,64})$/ ) {
+  } elsif ( $cgi->param($prefix.'ending') =~ /^([ 0-9\-\/\:]{1,64})$/ ) {
     #probably need an option to turn off the + 86399
+
+    #no, this should be add one day minus one second...
+    #  86399 is wrong twice a year when daylight savings time changes
+    #        and leap seconds too but only a second rather than an hour..
     $ending = parse_datetime($1) + 86399;
   }
 
diff --git a/httemplate/search/elements/report_cust_pay_or_refund.html b/httemplate/search/elements/report_cust_pay_or_refund.html
index 872031d..c79c3ab 100644
--- a/httemplate/search/elements/report_cust_pay_or_refund.html
+++ b/httemplate/search/elements/report_cust_pay_or_refund.html
@@ -73,7 +73,8 @@ Examples:
     <TD>
       <TABLE>
         <& /elements/tr-input-beginning_ending.html,
-                      layout   => 'horiz',
+                      layout     => 'horiz',
+                      input_time => 1,
         &>
       </TABLE>
     </TD>

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

Summary of changes:
 FS/FS/UI/Web.pm                                    |    8 ++++++--
 .../search/elements/report_cust_pay_or_refund.html |    3 ++-
 2 files changed, 8 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list