From: jeff Date: Sun, 9 Aug 2009 22:47:57 +0000 (+0000) Subject: don't bomb when the line item has no start date X-Git-Tag: root_of_svc_elec_features~940 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=d4c01ecffef02ef160d8c367270324e3d6a1c75d don't bomb when the line item has no start date --- diff --git a/FS/FS/cust_bill_pkg.pm b/FS/FS/cust_bill_pkg.pm index abf021845..bb30f03cd 100644 --- a/FS/FS/cust_bill_pkg.pm +++ b/FS/FS/cust_bill_pkg.pm @@ -299,6 +299,7 @@ Returns the previous cust_bill_pkg for this package, if any. sub previous_cust_bill_pkg { my $self = shift; + return unless $self->sdate; qsearchs({ 'table' => 'cust_bill_pkg', 'hashref' => { 'pkgnum' => $self->pkgnum,