summaryrefslogtreecommitdiff
path: root/eg/part_event-Condition-template.pm
diff options
context:
space:
mode:
Diffstat (limited to 'eg/part_event-Condition-template.pm')
-rw-r--r--eg/part_event-Condition-template.pm57
1 files changed, 0 insertions, 57 deletions
diff --git a/eg/part_event-Condition-template.pm b/eg/part_event-Condition-template.pm
deleted file mode 100644
index cc05843..0000000
--- a/eg/part_event-Condition-template.pm
+++ /dev/null
@@ -1,57 +0,0 @@
-package FS::part_event::Condition::mycondition;
-
-use strict;
-
-use base qw( FS::part_event::Condition );
-
-# see the FS::part_event::Condition manpage for full documentation on each
-# of the required and optional methods.
-
-sub description {
- 'New condition (the author forgot to change this description)';
-}
-
-#sub eventtable_hashref {
-# { 'cust_main' => 1,
-# 'cust_bill' => 1,
-# 'cust_pkg' => 1,
-# 'cust_pay_batch' => 1,
-# };
-#}
-
-#sub option_fields {
-# (
-# 'field' => 'description',
-#
-# 'another_field' => { 'label'=>'Amount', 'type'=>'money', },
-#
-# 'third_field' => { 'label' => 'Types',
-# 'type' => 'checkbox-multiple',
-# 'options' => [ 'h', 's' ],
-# 'option_labels' => { 'h' => 'Happy',
-# 's' => 'Sad',
-# },
-# );
-#}
-
-sub condition {
- my($self, $object, %opt) = @_;
-
- my $cust_main = $self->cust_main($object);
-
- my $value_of_field = $self->option('field');
-
- my $time = $opt{'time'}; #use this instead of time or $^T
-
- #test your condition
- 1;
-
-}
-
-#sub condition_sql {
-# my( $class, $table ) = @_;
-# #...
-# 'true';
-#}
-
-1;