projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git]
/
FS
/
FS
/
part_event
/
Condition
/
pkg_pkgpart.pm
diff --git
a/FS/FS/part_event/Condition/pkg_pkgpart.pm
b/FS/FS/part_event/Condition/pkg_pkgpart.pm
index
6adef8e
..
d5b5c8d
100644
(file)
--- a/
FS/FS/part_event/Condition/pkg_pkgpart.pm
+++ b/
FS/FS/part_event/Condition/pkg_pkgpart.pm
@@
-25,15
+25,16
@@
sub option_fields {
sub condition {
my( $self, $cust_pkg) = @_;
sub condition {
my( $self, $cust_pkg) = @_;
- #XXX test
my $if_pkgpart = $self->option('if_pkgpart') || {};
$if_pkgpart->{ $cust_pkg->pkgpart };
}
my $if_pkgpart = $self->option('if_pkgpart') || {};
$if_pkgpart->{ $cust_pkg->pkgpart };
}
-#XXX
-#sub condition_sql {
-#
-#}
+sub condition_sql {
+ my( $self, $table ) = @_;
+
+ 'cust_pkg.pkgpart IN '.
+ $self->condition_sql_option_option_integer('if_pkgpart');
+}
1;
1;