1dbe05466e17a76f6aa8d8e9e4ded9f6bdfefcc9
[freeside.git] / postal.pm
1 package FS::part_event::Condition::postal;
2 use base qw( FS::part_event::Condition );
3 use strict;
4
5 sub description {
6   'Customer receives a postal mail invoice';
7 }
8
9 sub condition {
10   my( $self, $object ) = @_;
11   my $cust_main = $self->cust_main($object);
12
13   $cust_main->postal_invoice eq 'Y';
14 }
15
16 sub condition_sql {
17   my( $self, $table ) = @_;
18
19   " cust_main.postal_invoice = 'Y' "
20 }
21
22 1;