[freeside-commits] freeside/FS/FS/UI Web.pm,1.8,1.9
Ivan,,,
ivan at wavetail.420.am
Sat Aug 6 17:40:04 PDT 2005
Update of /home/cvs/cvsroot/freeside/FS/FS/UI
In directory wavetail:/tmp/cvs-serv11217/FS/FS/UI
Modified Files:
Web.pm
Log Message:
move cust_pkg search to new template, add active/suspended/cancelled customer packages to agent browse
Index: Web.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/UI/Web.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Web.pm 14 Jul 2005 11:46:25 -0000 1.8
+++ Web.pm 7 Aug 2005 00:40:02 -0000 1.9
@@ -12,12 +12,20 @@
sub parse_beginning_ending {
my($cgi) = @_;
- $cgi->param('beginning') =~ /^([ 0-9\-\/]{0,10})$/;
- my $beginning = str2time($1) || 0;
+ my $beginning = 0;
+ if ( $cgi->param('begin') =~ /^(\d+)$/ ) {
+ $beginning = $1;
+ } elsif ( $cgi->param('beginning') =~ /^([ 0-9\-\/]{1,64})$/ ) {
+ $beginning = str2time($1) || 0;
+ }
- #need an option to turn off the + 86399 ???
- $cgi->param('ending') =~ /^([ 0-9\-\/]{0,10})$/;
- my $ending = ( $1 ? str2time($1) : 4294880896 ) + 86399;
+ my $ending = 4294967295; #2^32-1
+ if ( $cgi->param('end') =~ /^(\d+)$/ ) {
+ $ending = $1 - 1;
+ } elsif ( $cgi->param('ending') =~ /^([ 0-9\-\/]{1,64})$/ ) {
+ #probably need an option to turn off the + 86399
+ my $ending = str2time($1) + 86399;
+ }
( $beginning, $ending );
}
More information about the freeside-commits
mailing list