summaryrefslogtreecommitdiff
path: root/FS/FS/part_event/Condition/pkg_unless_pkgpart.pm
diff options
context:
space:
mode:
Diffstat (limited to 'FS/FS/part_event/Condition/pkg_unless_pkgpart.pm')
-rw-r--r--FS/FS/part_event/Condition/pkg_unless_pkgpart.pm39
1 files changed, 0 insertions, 39 deletions
diff --git a/FS/FS/part_event/Condition/pkg_unless_pkgpart.pm b/FS/FS/part_event/Condition/pkg_unless_pkgpart.pm
deleted file mode 100644
index 47fa8c321..000000000
--- a/FS/FS/part_event/Condition/pkg_unless_pkgpart.pm
+++ /dev/null
@@ -1,39 +0,0 @@
-package FS::part_event::Condition::pkg_unless_pkgpart;
-
-use strict;
-
-use base qw( FS::part_event::Condition );
-
-sub description { 'Except package definitions'; }
-
-sub eventtable_hashref {
- { 'cust_main' => 0,
- 'cust_bill' => 0,
- 'cust_pkg' => 1,
- };
-}
-
-sub option_fields {
- (
- 'unless_pkgpart' => { 'label' => 'Except packages: ',
- 'type' => 'select-part_pkg',
- 'multiple' => 1,
- },
- );
-}
-
-sub condition {
- my( $self, $cust_pkg) = @_;
-
- #XXX test
- my $unless_pkgpart = $self->option('unless_pkgpart') || {};
- ! $unless_pkgpart->{ $cust_pkg->pkgpart };
-
-}
-
-#XXX
-#sub condition_sql {
-#
-#}
-
-1;