($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi, 'payment_date');
$search{'payment_date'} = [ $beginning, $ending ];
+$search{'classnum'} = $cgi->param('classnum');
+
my $query = FS::vend_bill->search( \%search );
my $count_query = delete( $query->{'count_query'} );