projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05a2dd4
)
RT# 80869 Improve cust_payby.paydate validation
author
Mitch Jackson
<mitch@freeside.biz>
Tue, 28 Aug 2018 18:05:17 +0000
(14:05 -0400)
committer
Mitch Jackson
<mitch@freeside.biz>
Fri, 7 Sep 2018 19:03:00 +0000
(15:03 -0400)
FS/FS/cust_payby.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_payby.pm
b/FS/FS/cust_payby.pm
index
6d7ece6
..
c497059
100644
(file)
--- 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;
}