projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix "Customer has automatic payment information" condition when migrated from v3
[freeside.git]
/
FS
/
FS
/
part_event
/
Condition
/
signupdate_age.pm
diff --git
a/FS/FS/part_event/Condition/signupdate_age.pm
b/FS/FS/part_event/Condition/signupdate_age.pm
index
70b4bbd
..
0cfe550
100644
(file)
--- a/
FS/FS/part_event/Condition/signupdate_age.pm
+++ b/
FS/FS/part_event/Condition/signupdate_age.pm
@@
-14,10
+14,11
@@
sub option_fields {
}
sub condition {
- my( $self, $
cust_bill
, %opt ) = @_;
+ my( $self, $
object
, %opt ) = @_;
my $age = $self->option_age_from('age', $opt{'time'} );
+ my $cust_main = $self->cust_main($object);
( $cust_main->signupdate - 60 ) <= $age;
}