projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
299bcc0
)
RT# 32238 Billing Event cust_birthdate - Cleaner date compare window
author
Mitch Jackson
<mitch@freeside.biz>
Thu, 29 Nov 2018 00:31:41 +0000
(19:31 -0500)
committer
Mitch Jackson
<mitch@freeside.biz>
Thu, 29 Nov 2018 00:31:41 +0000
(19:31 -0500)
FS/FS/part_event/Condition/cust_birthdate.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_event/Condition/cust_birthdate.pm
b/FS/FS/part_event/Condition/cust_birthdate.pm
index
56ce857
..
e8ecb06
100644
(file)
--- a/
FS/FS/part_event/Condition/cust_birthdate.pm
+++ b/
FS/FS/part_event/Condition/cust_birthdate.pm
@@
-43,8
+43,10
@@
sub condition {
die "Unparsable timeframe given: ".$self->option('timeframe');
}
die "Unparsable timeframe given: ".$self->option('timeframe');
}
- my $ck_dt = DateTime->from_epoch( epoch => $opt{time} );
- my $bd_dt = DateTime->from_epoch( epoch => $birthdate );
+ my $ck_dt = DateTime->from_epoch( epoch => $opt{time} )
+ ->truncate( to => 'day' );
+ my $bd_dt = DateTime->from_epoch( epoch => $birthdate )
+ ->truncate( to => 'day' );
# Find the birthday for this calendar year. If customer birthday
# has already passed this year, find the birthday for next year.
# Find the birthday for this calendar year. If customer birthday
# has already passed this year, find the birthday for next year.