1 package FS::part_event::Condition::pkg_pkgpart;
5 use base qw( FS::part_event::Condition );
7 sub description { 'Package definitions'; }
9 sub eventtable_hashref {
18 'if_pkgpart' => { 'label' => 'Only packages: ',
19 'type' => 'select-part_pkg',
26 my( $self, $cust_pkg) = @_;
29 my $if_pkgpart = $self->option('if_pkgpart') || {};
30 $if_pkgpart->{ $cust_pkg->pkgpart };