projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT#42043: Check for cancelled packages with a cancellation date age option [age_newes...
[freeside.git]
/
FS
/
FS
/
part_event
/
Condition
/
nopostal.pm
diff --git
a/FS/FS/part_event/Condition/nopostal.pm
b/FS/FS/part_event/Condition/nopostal.pm
index
b95cd5c
..
ea55ba5
100644
(file)
--- a/
FS/FS/part_event/Condition/nopostal.pm
+++ b/
FS/FS/part_event/Condition/nopostal.pm
@@
-10,17
+10,13
@@
sub condition {
my( $self, $object ) = @_;
my $cust_main = $self->cust_main($object);
my( $self, $object ) = @_;
my $cust_main = $self->cust_main($object);
-
scalar( grep { $_ eq 'POST' } $cust_main->invoicing_list ) ? 0 : 1
;
+
$cust_main->postal_invoice eq ''
;
}
sub condition_sql {
my( $self, $table ) = @_;
}
sub condition_sql {
my( $self, $table ) = @_;
- " NOT EXISTS( SELECT 1 FROM cust_main_invoice
- WHERE cust_main_invoice.custnum = cust_main.custnum
- AND cust_main_invoice.dest = 'POST'
- )
- ";
+ " cust_main.postal_invoice IS NULL ";
}
1;
}
1;