add calendar to cust_bill_event search page, make ending date default to open-ended...
[freeside.git] / httemplate / search / cust_bill_event.cgi
index 9cb36d2..7c2b3a2 100644 (file)
@@ -4,10 +4,10 @@
 #false laziness with view/cust_bill.cgi
 
 $cgi->param('beginning') =~ /^([ 0-9\-\/]{0,10})$/;
-my $beginning = str2time($1);
+my $beginning = str2time($1) || 0;
 
 $cgi->param('ending') =~ /^([ 0-9\-\/]{0,10})$/;
-my $ending = str2time($1) + 86400;
+my $ending =  ( $1 ? str2time($1) : 4294880896 ) + 86399;
 
 my @cust_bill_event =
   sort { $a->_date <=> $b->_date }