backport "allow open pay_batches to be included in search" to 2.3, RT#22708 (fallout...
authorIvan Kohler <ivan@freeside.biz>
Tue, 23 Apr 2013 00:37:10 +0000 (17:37 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 23 Apr 2013 00:37:10 +0000 (17:37 -0700)
httemplate/search/pay_batch.cgi

index 8326826..29a6125 100755 (executable)
@@ -101,8 +101,8 @@ my($begin, $end) = ( '', '' );
 my @where;
 
 my($beginning,$ending) = FS::UI::Web::parse_beginning_ending($cgi);
-push @where, "download >= $beginning",
-             "download <= $ending";
+push @where, "( (download >= $beginning AND download <= $ending)".
+             ' OR download IS NULL )';
 
 my @status;
 if ( $cgi->param('open') ) {