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_status.pm
diff --git
a/FS/FS/part_event/Condition/pkg_status.pm
b/FS/FS/part_event/Condition/pkg_status.pm
index
6c1c9cc
..
0d99f3b
100644
(file)
--- a/
FS/FS/part_event/Condition/pkg_status.pm
+++ b/
FS/FS/part_event/Condition/pkg_status.pm
@@
-13,6
+13,7
@@
sub eventtable_hashref {
{ 'cust_main' => 0,
'cust_bill' => 0,
'cust_pkg' => 1,
{ 'cust_main' => 0,
'cust_bill' => 0,
'cust_pkg' => 1,
+ 'svc_acct' => 1,
};
}
};
}
@@
-27,11
+28,19
@@
sub option_fields {
}
sub condition {
}
sub condition {
- my( $self, $
cust_pkg
) = @_;
+ my( $self, $
object
) = @_;
+ my $cust_pkg = $self->cust_pkg($object);
#XXX test
my $hashref = $self->option('status') || {};
$hashref->{ $cust_pkg->status };
}
#XXX test
my $hashref = $self->option('status') || {};
$hashref->{ $cust_pkg->status };
}
+sub condition_sql {
+ my( $self, $table ) = @_;
+
+ '('.FS::cust_pkg->status_sql . ') IN '.
+ $self->condition_sql_option_option('status');
+}
+
1;
1;