# with today's date, regardless of the pretend date used to pre-generate
# the invoices.
#
-# -p: Only process customers with the specified payby (I<CARD>, I<DCRD>, I<CHEK>, I<DCHK>, I<BILL>, I<COMP>, I<LECB>)
-#
# -a: Only process customers with the specified agentnum
#
# -v: enable debugging
Class method which returns an SQL WHERE fragment to search for parameters
specified in HASHREF. Accepts the following parameters for
L<FS::cust_bill::search_sql_where>: C<_date>, C<invnum_min>, C<invnum_max>,
-C<agentnum>, C<custnum>, C<cust_classnum>, C<refnum>, C<payby>. Also
+C<agentnum>, C<custnum>, C<cust_classnum>, C<refnum>. Also
accepts the following:
=over 4
map { $_ => $param->{$_} }
grep { exists($param->{$_}) }
qw( _date invnum_min invnum_max agentnum custnum cust_classnum
- refnum payby )
+ refnum )
};
my $search_sql = FS::cust_bill->search_sql_where($cust_bill_param);
$search_sql =~ s/cust_bill/cust_bill_void/g;