X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fbirthdate.html;h=ecf591fb01686cab053a3a2b25fe69959e0bef25;hb=90e15da7354b55cc5461b58ac087096ed47e0240;hp=5af819bdc33606029fa59441bb3b458291627b04;hpb=5a204201503f8e0db6087db6e53b84297cbc739a;p=freeside.git diff --git a/httemplate/edit/cust_main/birthdate.html b/httemplate/edit/cust_main/birthdate.html index 5af819bdc..ecf591fb0 100644 --- a/httemplate/edit/cust_main/birthdate.html +++ b/httemplate/edit/cust_main/birthdate.html @@ -6,13 +6,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"; - +% } else { # elsif ( $cust_main->national_id =~ /^\w\d{9}$/ ) { +% $old = $cust_main->national_id; +% #} else { +% # warn "unknown national_id format"; +%# % } <% include( '/elements/tr-input-text.html', @@ -34,28 +34,28 @@ % } % if ( $conf->exists('cust_main-enable_birthdate') ) { - <% include( '/elements/tr-input-date-field.html', { - 'name' => 'birthdate', - 'value' => $cust_main->birthdate, - 'label' => 'Date of Birth', - 'format' => ( $conf->config('date_format') || "%m/%d/%Y" ), - 'usedatetime' => 1, - 'noinit' => $noinit++, - }) - %> -% } + <& /elements/tr-input-date-field.html, { + 'name' => 'birthdate', + 'value' => $cust_main->birthdate, + 'label' => 'Date of Birth', + 'format' => ( $conf->config('date_format') || "%m/%d/%Y" ), + 'usedatetime' => 1, + 'noinit' => $noinit++, + } + &> -% if ( $conf->exists('cust_main-enable_spouse_birthdate') ) { - <% include( '/elements/tr-input-date-field.html', { - 'name' => 'spouse_birthdate', - 'value' => $cust_main->spouse_birthdate, - 'label' => 'Spouse Date of Birth', - 'format' => ( $conf->config('date_format') || "%m/%d/%Y" ), - 'usedatetime' => 1, - 'noinit' => $noinit++, - }) - %> -% } +% if ( $conf->exists('cust_main-enable_spouse') ) { + <& /elements/tr-input-date-field.html, { + 'name' => 'spouse_birthdate', + 'value' => $cust_main->spouse_birthdate, + 'label' => 'Spouse Date of Birth', + 'format' => ( $conf->config('date_format') || "%m/%d/%Y" ), + 'usedatetime' => 1, + 'noinit' => $noinit++, + } + &> +% } # if enable_spouse +% } # if enable_birthdate % if ( $conf->exists('cust_main-enable_anniversary_date') ) { <% include( '/elements/tr-input-date-field.html', {