summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-08-28 02:05:56 -0700
committerIvan Kohler <ivan@freeside.biz>2012-08-28 02:05:56 -0700
commitfd64501b96f4e149ceb3896cc334b330910afe9a (patch)
tree009bde38c77a18bb24b5451e9a3c54efe5412c79 /httemplate/edit
parent63392290c6036b94622e770ba88f2275d6e4e5cf (diff)
remove validation from national_id old format per customer, RT#18543
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/cust_main/birthdate.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/httemplate/edit/cust_main/birthdate.html b/httemplate/edit/cust_main/birthdate.html
index e856e13f4..4d5554fc5 100644
--- a/httemplate/edit/cust_main/birthdate.html
+++ b/httemplate/edit/cust_main/birthdate.html
@@ -4,13 +4,13 @@
% if ( $id_country ) {
% if ( $id_country eq 'MY' ) {
% my($old, $nric) = ( '', '');
-% if ( $cust_main->national_id =~ /^\w\d{9}$/ ) {
-% $old = $cust_main->national_id;
-% } elsif ( $cust_main->national_id =~ /^\d{6}\-\d{2}\-\d{4}$/ ) {
+% if ( $cust_main->national_id =~ /^\d{6}\-\d{2}\-\d{4}$/ ) {
% $nric = $cust_main->national_id;
-% } else {
-% warn "unknown national_id format";
- <INPUT TYPE="hidden" NAME="national_id0" VALUE="<% $cust_main->national_id |h %>">
+% } else { # elsif ( $cust_main->national_id =~ /^\w\d{9}$/ ) {
+% $old = $cust_main->national_id;
+% #} else {
+% # warn "unknown national_id format";
+%# <INPUT TYPE="hidden" NAME="national_id0" VALUE="<% $cust_main->national_id |h %>">
% }
<% include( '/elements/tr-input-text.html',