summaryrefslogtreecommitdiff
path: root/FS/FS/part_event/Condition/cust_bill_hasnt_noauto.pm
diff options
context:
space:
mode:
Diffstat (limited to 'FS/FS/part_event/Condition/cust_bill_hasnt_noauto.pm')
-rw-r--r--FS/FS/part_event/Condition/cust_bill_hasnt_noauto.pm33
1 files changed, 33 insertions, 0 deletions
diff --git a/FS/FS/part_event/Condition/cust_bill_hasnt_noauto.pm b/FS/FS/part_event/Condition/cust_bill_hasnt_noauto.pm
new file mode 100644
index 0000000..78a6d51
--- /dev/null
+++ b/FS/FS/part_event/Condition/cust_bill_hasnt_noauto.pm
@@ -0,0 +1,33 @@
+package FS::part_event::Condition::cust_bill_hasnt_noauto;
+
+use strict;
+use FS::cust_bill;
+
+use base qw( FS::part_event::Condition );
+
+sub description {
+ 'Invoice eligible for automatic collection';
+}
+
+sub eventtable_hashref {
+ { 'cust_main' => 0,
+ 'cust_bill' => 1,
+ 'cust_pkg' => 0,
+ };
+}
+
+sub condition {
+ #my($self, $cust_bill, %opt) = @_;
+ my($self, $cust_bill) = @_;
+
+ ! $cust_bill->no_auto;
+}
+
+#sub condition_sql {
+# my( $class, $table ) = @_;
+#
+# my $sql = qq| |;
+# return $sql;
+#}
+
+1;