summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2011-01-20 05:34:47 +0000
committerivan <ivan>2011-01-20 05:34:47 +0000
commitefa56e24ea3e4ab8f09ef13c2cbdcaa58e975e4e (patch)
tree1994dc5f98ff2e022c2a091be32059b761be8071 /FS
parenta893c2453be971b85d6e85edbfaf35965022a319 (diff)
fix condition to work w/taxes, RT#3983
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/part_event/Condition/cust_bill_has_service.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/FS/FS/part_event/Condition/cust_bill_has_service.pm b/FS/FS/part_event/Condition/cust_bill_has_service.pm
index d85af261e..744e079d3 100644
--- a/FS/FS/part_event/Condition/cust_bill_has_service.pm
+++ b/FS/FS/part_event/Condition/cust_bill_has_service.pm
@@ -32,9 +32,10 @@ sub condition {
my($self, $cust_bill) = @_;
my $servicenum = $self->option('has_service');
+
grep { $servicenum == $_->svcpart }
- map { $_->cust_pkg->cust_svc }
- $cust_bill->cust_bill_pkg ;
+ map { $_->cust_svc }
+ $cust_bill->cust_pkg;
}
sub condition_sql {