projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git]
/
FS
/
FS
/
cust_main
/
NationalID.pm
diff --git
a/FS/FS/cust_main/NationalID.pm
b/FS/FS/cust_main/NationalID.pm
index
cc8d556
..
a742b76
100644
(file)
--- a/
FS/FS/cust_main/NationalID.pm
+++ b/
FS/FS/cust_main/NationalID.pm
@@
-36,11
+36,15
@@
sub set_national_id_from_cgi {
} elsif ( $cgi->param('national_id2') =~ /\S/ ) {
my $oldic = $cgi->param('national_id2');
$oldic =~ s/\s//g;
} elsif ( $cgi->param('national_id2') =~ /\S/ ) {
my $oldic = $cgi->param('national_id2');
$oldic =~ s/\s//g;
- if ( $oldic =~ /^\w\d{9}$/ ) {
+
+ # can you please remove validation for "Old IC/Passport:" field, customer
+ # will have other field format like, RF/123456, I/5234234 ...
+ #if ( $oldic =~ /^\w\d{9}$/ ) {
$self->national_id($oldic);
$self->national_id($oldic);
- } else {
- $error ||= "Illegal Old IC/Passport: ". $cgi->param('national_id2');
- }
+ #} else {
+ # $error ||= "Illegal Old IC/Passport: ". $cgi->param('national_id2');
+ #}
+
} else {
$error ||= 'Either NRIC or Old IC/Passport is required';
}
} else {
$error ||= 'Either NRIC or Old IC/Passport is required';
}