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) = @_;
28 my $if_pkgpart = $self->option('if_pkgpart') || {};
29 $if_pkgpart->{ $cust_pkg->pkgpart };
34 my( $self, $table ) = @_;
36 'cust_pkg.pkgpart IN '.
37 $self->condition_sql_option_option_integer('if_pkgpart');