X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main.pm;h=2a8a8b7ee0bd5ed8d4866ff8f795f5b9f700fad1;hb=d2c5fa2eb293628ae281120322eb0e70d6a92a7d;hp=26883d554143595811f940d643445fab1575ab56;hpb=3bfec7cf75a1a4eb4da1cdf8c64003bd6babcd81;p=freeside.git diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 26883d554..2a8a8b7ee 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -11,7 +11,7 @@ use Safe; use Carp; use Time::Local; use Date::Format; -use Date::Manip; +#use Date::Manip; use Mail::Internet; use Mail::Header; use Business::CreditCard; @@ -450,15 +450,16 @@ Returns all non-cancelled packages (see L) for this customer. sub ncancelled_pkgs { my $self = shift; - qsearch( 'cust_pkg', { - 'custnum' => $self->custnum, - 'cancel' => '', - }), - qsearch( 'cust_pkg', { - 'custnum' => $self->custnum, - 'cancel' => 0, - }), - ; + @{ [ # force list context + qsearch( 'cust_pkg', { + 'custnum' => $self->custnum, + 'cancel' => '', + }), + qsearch( 'cust_pkg', { + 'custnum' => $self->custnum, + 'cancel' => 0, + }), + ] }; } =item bill OPTIONS @@ -545,7 +546,8 @@ sub bill { warn "Error reval-ing part_pkg->recur pkgpart ", $part_pkg->pkgpart, ": $@"; } else { - #change this bit to use Date::Manip? + #change this bit to use Date::Manip? CAREFUL with timezones (see + # mailing list archive) #$sdate=$cust_pkg->bill || time; #$sdate=$cust_pkg->bill || $time; $sdate = $cust_pkg->bill || $cust_pkg->setup || $time; @@ -993,7 +995,7 @@ sub check_invoicing_list { =head1 VERSION -$Id: cust_main.pm,v 1.4 2000-02-02 20:22:18 ivan Exp $ +$Id: cust_main.pm,v 1.6 2000-06-24 00:28:30 ivan Exp $ =head1 BUGS