projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
af7807e
)
cancelled outboudn package doesn't count, RT#8712
author
ivan
<ivan>
Sat, 26 Jun 2010 20:46:18 +0000
(20:46 +0000)
committer
ivan
<ivan>
Sat, 26 Jun 2010 20:46:18 +0000
(20:46 +0000)
FS/FS/Maestro.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Maestro.pm
b/FS/FS/Maestro.pm
index
bb79285
..
d4d9ffa
100644
(file)
--- a/
FS/FS/Maestro.pm
+++ b/
FS/FS/Maestro.pm
@@
-46,7
+46,11
@@
sub customer_status {
my $conf = new FS::Conf;
my %outbound_pkgs = map { $_=>1 } $conf->config('mc-outbound_packages');
my $outbound_service =
my $conf = new FS::Conf;
my %outbound_pkgs = map { $_=>1 } $conf->config('mc-outbound_packages');
my $outbound_service =
- scalar( grep $outbound_pkgs{ $_->pkgpart }, @cust_pkg )
+ scalar( grep { $outbound_pkgs{ $_->pkgpart }
+ && !$_->get('cancel')
+ }
+ @cust_pkg
+ )
? 1 : 0;
###
? 1 : 0;
###