blob: d43d6c0c731668dc0c263fdccbf4ee947e7e0f1c (
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
|
package FS::part_event::Condition::has_referral_custnum;
use strict;
use FS::cust_main;
use base qw( FS::part_event::Condition );
sub description { 'Customer has a referring customer'; }
sub condition {
my($self, $object) = @_;
my $cust_main = $self->cust_main($object);
$cust_main->referral_custnum;
}
sub condition_sql {
#my( $class, $table ) = @_;
"cust_main.referral_custnum IS NOT NULL";
}
1;
|