enable package class condition for invoices, #14499
[freeside.git] / FS / FS / part_event / Condition / dundate.pm
1 package FS::part_event::Condition::dundate;
2
3 use strict;
4
5 use base qw( FS::part_event::Condition );
6
7 sub description {
8   "Skip until customer dun date is reached";
9 }
10
11 sub condition {
12   my($self, $object, %opt) = @_;
13
14   my $cust_main = $self->cust_main($object);
15
16   $cust_main->dundate <= $opt{time};
17
18 }
19
20 #sub condition_sql {
21 #  my( $self, $table ) = @_;
22 #
23 #  'true';
24 #}
25
26 1;