X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2Fcust_main.pm;h=9300f2c12053721c2ca27d3c57944ecb82c0581e;hb=5de882c01159bfcc5f3d91c7cdfb4c707ff2516f;hp=c26dc92315b78ccdf66a01d9504c857ed7991e85;hpb=ef5c5621cdb9541d6bcf934233396edae30f8c3b;p=freeside.git diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index c26dc9231..9300f2c12 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -19,7 +19,7 @@ use String::Approx qw(amatch); use Business::CreditCard 0.28; use Locale::Country; use Data::Dumper; -use FS::UID qw( getotaker dbh ); +use FS::UID qw( getotaker dbh driver_name ); use FS::Record qw( qsearchs qsearch dbdef ); use FS::Misc qw( send_email generate_ps do_print ); use FS::Msgcat qw(gettext); @@ -28,6 +28,7 @@ use FS::cust_svc; use FS::cust_bill; use FS::cust_bill_pkg; use FS::cust_pay; +use FS::cust_pay_pending; use FS::cust_pay_void; use FS::cust_pay_batch; use FS::cust_credit; @@ -1681,7 +1682,8 @@ sub num_ncancelled_pkgs { } sub num_pkgs { - my( $self, $sql ) = @_; + my( $self ) = shift; + my $sql = scalar(@_) ? shift : ''; $sql = "AND $sql" if $sql && $sql !~ /^\s*$/ && $sql !~ /^\s*AND/i; my $sth = dbh->prepare( "SELECT COUNT(*) FROM cust_pkg WHERE custnum = ? $sql" @@ -1912,7 +1914,6 @@ If set true, re-charges setup fees. Debugging level. Default is 0 (no debugging), or can be set to 1 (passed-in options), 2 (traces progress), 3 (more information), or 4 (include full search queries) - =back =cut @@ -1980,11 +1981,11 @@ Options are passed as name-value pairs. Currently available options are: =item resetup -if set true, re-charges setup fees. +If set true, re-charges setup fees. =item time -bills the customer as if it were that time. Specified as a UNIX timestamp; see L). Also see L and L for conversion functions. For example: +Bills the customer as if it were that time. Specified as a UNIX timestamp; see L). Also see L and L for conversion functions. For example: use Date::Parse; ... @@ -1998,7 +1999,7 @@ An array ref of specific packages (objects) to attempt billing, instead trying a =item invoice_time -used in conjunction with the I