X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fmisc.html;h=fe0e329c3af4fde57bcdd26071e251b59c148311;hb=4d0db1129018d2f598091edbbffeb09b23c64d99;hp=8c23a3f683d20e181733f285f583c378e2136206;hpb=e141dcae4712d6fc9d5207ad42f864605788309f;p=freeside.git diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html index 8c23a3f68..fe0e329c3 100644 --- a/httemplate/view/cust_main/misc.html +++ b/httemplate/view/cust_main/misc.html @@ -1,4 +1,4 @@ -<% ntable("#cccccc") %><% &ntable("#cccccc",2) %> + @@ -7,7 +7,7 @@ - + % my @part_tag = $cust_main->part_tag; @@ -48,10 +48,17 @@ % #if ( $cust_main->classnum ) { - + % #} +% 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,18 +141,59 @@ +% 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 ) { - - + + % } -
<% mt('Customer number') |h %>
<% mt('Status') |h %><% ucfirst($cust_main->status) %><% $status_label %>
<% mt('Class') |h %><% $cust_main->classname || '('.mt('none').')' %><% $cust_main->classname || '('.emt('none').')' %>
<% 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 %>
+ +% if ( $conf->exists('ticket_system-selfservice_edit_subject') ) { + + + <% mt('Edit ticket subjects') %> + <% $cust_main->edit_subject ? 'yes' : 'no' %> + + +% } + +% foreach (sort { $a cmp $b } $cust_main->virtual_fields) { + <% $cust_main->pvf($_)->widget('HTML', 'view', $cust_main->getfield($_)) %> +% } + + <%init> my( $cust_main ) = @_; @@ -136,4 +204,9 @@ my $curuser = $FS::CurrentUser::CurrentUser; my @agentnums = $curuser->agentnums; +my $status_label = $cust_main->status_label; +if ($cust_main->is_status_delay_cancel) { + $status_label .= ' (Cancelled)'; +} +