X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fmisc.html;h=0d011f6ebe26f0ec7aba8c6256a21f1260114a29;hb=cb7ff9f91771b63d712493d966de041d857e83e7;hp=5987459a58d90d96604e9cfae4cda19020a8de65;hpb=4987c433ba77d64a0ef73c445a3d4afde9d080d3;p=freeside.git diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html index 5987459a5..0d011f6eb 100644 --- a/httemplate/view/cust_main/misc.html +++ b/httemplate/view/cust_main/misc.html @@ -1,4 +1,4 @@ -<% ntable("#cccccc") %><% &ntable("#cccccc",2) %> + @@ -52,6 +52,13 @@ % #} +% if ( $cust_main->salesnum ) { + + + + +% } + % unless ( FS::part_referral->num_part_referral == 1 ) { % my $referral = qsearchs('part_referral', { % 'refnum' => $cust_main->refnum @@ -77,7 +84,7 @@ % -<%$cust_main->referral_custnum %>: +<%$referring_cust_main->display_custnum %>: <% ( $referring_cust_main->company ? $referring_cust_main->company. ' ('. @@ -102,6 +109,26 @@ +% my $id_country = $conf->config('national_id-country'); +% if ( $id_country ) { +% if ( $id_country eq 'MY' ) { + +% my($old, $nric) = ( '', ''); +% if ( $cust_main->national_id =~ /^\d{6}\-\d{2}\-\d{4}$/ ) { + +% } else { # elsif ( $cust_main->national_id =~ /^\w\d{9}$/ ) { + +% #} else { +% # warn "unknown national_id format"; +%# +% } + + +% } 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, @@ -114,17 +141,45 @@ +% if ( $conf->exists('cust_main-enable_spouse') +% and $cust_main->spouse_birthdate ) { +% my $dt = DateTime->from_epoch( +% 'epoch' => $cust_main->spouse_birthdate, +% 'time_zone' =>'floating' +% ); + + + + + + +% } +% } # enable_birthdate + +% if ( $conf->exists('cust_main-enable_anniversary_date') ) { +% my $dt = $cust_main->anniversary_date ne '' +% ? DateTime->from_epoch( 'epoch' => $cust_main->anniversary_date, +% 'time_zone' =>'floating', +% ) +% : ''; + + + + + + % } -% if ( $conf->exists('cust_main-require_censustract') ) { +% if ( $cust_main->district ) { - - + + % } + % if ( $conf->exists('ticket_system-selfservice_edit_subject') ) { @@ -134,7 +189,11 @@ % } -
<% mt('Customer number') |h %>
<% mt('Sales Person') |h %><% $cust_main->salesperson |h %>
<% $cust_main->signupdate ? time2str($date_format, $cust_main->signupdate) : '' %>
<% mt('NRIC') |h %><% mt('Old IC/Passport') |h %><% $cust_main->national_id |h %>
<% $dt ? $dt->strftime($date_format) : '' %>
<% mt('Spouse Date of Birth') |h %><% $dt ? $dt->strftime($date_format) : '' %>
<% mt('Anniversary Date') |h %><% $dt ? $dt->strftime($date_format) : '' %>
<% mt('Census tract') |h %><% $cust_main->censustract %><% mt('Tax district') |h %><% $cust_main->ship_location->district %>
+% foreach (sort { $a cmp $b } $cust_main->virtual_fields) { + <% $cust_main->pvf($_)->widget('HTML', 'view', $cust_main->getfield($_)) %> +% } + + <%init> my( $cust_main ) = @_;