<% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>

blib::lib::FS::cust_bill::Search

search HASHREF

(Class method)

Returns a qsearch hash expression to search for parameters specified in HASHREF. In addition to all parameters accepted by search_sql_where, the following additional parameters valid:

newest_percust - only show the most recent invoice for each customer
invoiced - show the invoiced amount (excluding discounts) instead of gross sales
search_sql_where HASHREF

Class method which returns an SQL WHERE fragment to search for parameters specified in HASHREF. Valid parameters are

_date

List reference of start date, end date, as UNIX timestamps.

invnum_min
invnum_max
agentnum
cust_status
cust_classnum

List reference

charged

List reference of charged limits (exclusive).

owed

List reference of charged limits (exclusive).

open

flag, return open invoices only

net

flag, return net invoices only

days
newest_percust
custnum

Return only invoices belonging to that customer.

cust_classnum

Limit to that customer class (single value or arrayref).

refnum

Limit to customers with that advertising source.

Note: validates all passed-in data; i.e. safe to use with unchecked CGI params.

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 12:

'=item' outside of any '=over'

=over without closing =back

<% include ('/elements/footer.html' ) %>