summaryrefslogtreecommitdiff
path: root/FS/FS/part_event/Condition/dundate.pm
blob: ee2a95f0bf40ad978e29fcc169169e3671ac44e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package FS::part_event::Condition::dundate;

use strict;

use base qw( FS::part_event::Condition );

sub description {
  "Skip until customer dun date is reached";
}

sub condition {
  my($self, $object, %opt) = @_;

  my $cust_main = $self->cust_main($object);

  $cust_main->dundate <= $opt{time};

}

#sub condition_sql {
#  my( $self, $table ) = @_;
#
#  'true';
#}

1;