summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2018-08-28 14:05:17 -0400
committerMitch Jackson <mitch@freeside.biz>2018-09-07 15:03:00 -0400
commitfe0e5a810960200b5352128139e6b040ea08eada (patch)
tree17148224d9aaa071941753a9570d3aeb25fcbf19
parent05a2dd488791bb2468d40db07d17db5cfaa673fd (diff)
RT# 80869 Improve cust_payby.paydate validation
-rw-r--r--FS/FS/cust_payby.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/cust_payby.pm b/FS/FS/cust_payby.pm
index 6d7ece6ca..c497059fa 100644
--- a/FS/FS/cust_payby.pm
+++ b/FS/FS/cust_payby.pm
@@ -315,7 +315,6 @@ sub check {
#encrypted #|| $self->ut_textn('payinfo')
#encrypted #|| $self->ut_textn('paycvv')
# || $self->ut_textn('paymask') #XXX something
- || $self->ut_daten('paydate')
|| $self->ut_numbern('paystart_month')
|| $self->ut_numbern('paystart_year')
|| $self->ut_numbern('payissue')
@@ -546,6 +545,9 @@ sub check {
return $error if $error;
}
+ $error = $self->ut_daten('paydate');
+ return $error if $error;
+
$self->SUPER::check;
}