diff options
author | jeff <jeff> | 2009-08-09 22:47:57 +0000 |
---|---|---|
committer | jeff <jeff> | 2009-08-09 22:47:57 +0000 |
commit | d4c01ecffef02ef160d8c367270324e3d6a1c75d (patch) | |
tree | ae56f054550992c7f32693e3c0285624e895cb5d /FS | |
parent | 283ea2b5137ae3ec36882b492e6de024b0ce6027 (diff) |
don't bomb when the line item has no start date
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_bill_pkg.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/FS/FS/cust_bill_pkg.pm b/FS/FS/cust_bill_pkg.pm index abf0218..bb30f03 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, |