summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2002-06-12 16:26:52 +0000
committerivan <ivan>2002-06-12 16:26:52 +0000
commit1f637f27c25b2c402261e519094fb8b9d683935a (patch)
treeeba7bee0f61546e53fd9ae98d90160c60939956f /FS
parent7f7fb08833dd4a006adc45fe5deb9931f3aee94e (diff)
fix problems with code that resets invoice events
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_main.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index b6600fb29..6be6cdb74 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -493,7 +493,10 @@ sub replace {
&& $_->status eq 'done'
&& $_->statustext
}
- $self->open_cust_bill->cust_bill_event
+ map { $_->cust_bill_event }
+ grep { $_->cust_bill_event }
+ $self->open_cust_bill
+
) {
my $error = $cust_bill_event->retry;
if ( $error ) {
@@ -1237,7 +1240,9 @@ sub collect {
&& $_->status eq 'done'
&& $_->statustext
}
- $self->open_cust_bill->cust_bill_event
+ map { $_->cust_bill_event }
+ grep { $_->cust_bill_event }
+ $self->open_cust_bill
) {
my $error = $cust_bill_event->retry;
if ( $error ) {