X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fmisc.html;h=9713b246937b45b47ddb4d26b6ea2fcf8bcb310f;hb=5a204201503f8e0db6087db6e53b84297cbc739a;hp=dc6da53f13c5b03072a05b64923f8457607028ef;hpb=d32459cf059ff29a5ddc4b83ca2bf50a7828454b;p=freeside.git
diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html
index dc6da53f1..9713b2469 100644
--- a/httemplate/view/cust_main/misc.html
+++ b/httemplate/view/cust_main/misc.html
@@ -102,6 +102,26 @@
<% $cust_main->signupdate ? time2str($date_format, $cust_main->signupdate) : '' %> |
+% my $id_country = $conf->config('national_id-country');
+% if ( $id_country ) {
+% if ( $id_country eq 'MY' ) {
+
+% my($old, $nric) = ( '', '');
+% if ( $cust_main->national_id =~ /^\w\d{9}$/ ) {
+ <% mt('Old IC/Passport') |h %> |
+% } elsif ( $cust_main->national_id =~ /^\d{6}\-\d{2}\-\d{4}$/ ) {
+ <% mt('NRIC') |h %> |
+% } else {
+% warn "unknown national_id format";
+ |
+% }
+ <% $cust_main->national_id |h %> |
+
+% } else {
+% warn "unknown national_id-country $id_country";
+% }
+% }
+
% if ( $conf->exists('cust_main-enable_birthdate') ) {
% my $dt = $cust_main->birthdate ne ''
% ? DateTime->from_epoch( 'epoch' => $cust_main->birthdate,