projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
283ea2b
)
don't bomb when the line item has no start date
author
jeff
<jeff>
Sun, 9 Aug 2009 22:47:57 +0000
(22:47 +0000)
committer
jeff
<jeff>
Sun, 9 Aug 2009 22:47:57 +0000
(22:47 +0000)
FS/FS/cust_bill_pkg.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_bill_pkg.pm
b/FS/FS/cust_bill_pkg.pm
index
abf0218
..
bb30f03
100644
(file)
--- 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;
sub previous_cust_bill_pkg {
my $self = shift;
+ return unless $self->sdate;
qsearchs({
'table' => 'cust_bill_pkg',
'hashref' => { 'pkgnum' => $self->pkgnum,
qsearchs({
'table' => 'cust_bill_pkg',
'hashref' => { 'pkgnum' => $self->pkgnum,