diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-05-07 11:18:13 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-05-07 11:18:13 -0700 |
commit | cfcc4c14a40c84d1603c707066e7644aefef5690 (patch) | |
tree | 12f258e286226936cb2ab4dd079d8f2dc1b1667e /FS/FS/cust_main/Search.pm | |
parent | 57b5e61bbf33519f0f42dd92913a78b4de764052 (diff) |
add spouse_birthdate, RT#17577
Diffstat (limited to 'FS/FS/cust_main/Search.pm')
-rw-r--r-- | FS/FS/cust_main/Search.pm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/FS/FS/cust_main/Search.pm b/FS/FS/cust_main/Search.pm index 31b89cd..b663c20 100644 --- a/FS/FS/cust_main/Search.pm +++ b/FS/FS/cust_main/Search.pm @@ -467,6 +467,14 @@ bool listref of start date, end date +=item birthdate + +listref of start date, end date + +=item spouse_birthdate + +listref of start date, end date + =item payby listref @@ -599,7 +607,7 @@ sub search { # dates ## - foreach my $field (qw( signupdate )) { + foreach my $field (qw( signupdate birthdate spouse_birthdate )) { next unless exists($params->{$field}); @@ -610,7 +618,7 @@ sub search { "cust_main.$field >= $beginning", "cust_main.$field <= $ending"; - if(defined $hour) { + if($field eq 'signupdate' && defined $hour) { if ($dbh->{Driver}->{Name} =~ /Pg/i) { push @where, "extract(hour from to_timestamp(cust_main.$field)) = $hour"; } |