diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-08-28 02:05:55 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-08-28 02:05:55 -0700 |
commit | f674b7c9b094749fcef770d1ae03640b69b1ec83 (patch) | |
tree | 97c420585ae96729da7e607b366b76d966b89318 /httemplate/view | |
parent | 4e43da6dff682295e4e0b2fbdd7097fce95c68d7 (diff) |
remove validation from national_id old format per customer, RT#18543
Diffstat (limited to 'httemplate/view')
-rw-r--r-- | httemplate/view/cust_main/misc.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html index 9713b2469..263c266e7 100644 --- a/httemplate/view/cust_main/misc.html +++ b/httemplate/view/cust_main/misc.html @@ -107,13 +107,13 @@ % if ( $id_country eq 'MY' ) { <TR> % my($old, $nric) = ( '', ''); -% if ( $cust_main->national_id =~ /^\w\d{9}$/ ) { - <TD ALIGN="right"><% mt('Old IC/Passport') |h %></TD> -% } elsif ( $cust_main->national_id =~ /^\d{6}\-\d{2}\-\d{4}$/ ) { +% if ( $cust_main->national_id =~ /^\d{6}\-\d{2}\-\d{4}$/ ) { <TD ALIGN="right"><% mt('NRIC') |h %></TD> -% } else { -% warn "unknown national_id format"; - <TD ALIGN="right"></TD> +% } else { # elsif ( $cust_main->national_id =~ /^\w\d{9}$/ ) { + <TD ALIGN="right"><% mt('Old IC/Passport') |h %></TD> +% #} else { +% # warn "unknown national_id format"; +%# <TD ALIGN="right"></TD> % } <TD BGCOLOR="#ffffff"><% $cust_main->national_id |h %></TD> </TR> |