X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fmisc.html;h=c7399ae7e52d0eb819c9f55de3f030a101fb32a1;hb=24389dff37b486ed4f0281bd50a3ff1ee77ae74d;hp=a0ab403e8d0317c32e7793364d5b0442e994b279;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html index a0ab403e8..c7399ae7e 100644 --- a/httemplate/view/cust_main/misc.html +++ b/httemplate/view/cust_main/misc.html @@ -7,7 +7,7 @@ <% mt('Status') |h %> - <% ucfirst($cust_main->status) %> + <% $status_label %> % my @part_tag = $cust_main->part_tag; @@ -52,6 +52,13 @@ % #} +% if ( $cust_main->salesnum ) { + + <% mt('Sales Person') |h %> + <% $cust_main->salesperson |h %> + +% } + % unless ( FS::part_referral->num_part_referral == 1 ) { % my $referral = qsearchs('part_referral', { % 'refnum' => $cust_main->refnum @@ -102,6 +109,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 =~ /^\d{6}\-\d{2}\-\d{4}$/ ) { + <% mt('NRIC') |h %> +% } else { # elsif ( $cust_main->national_id =~ /^\w\d{9}$/ ) { + <% mt('Old IC/Passport') |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, @@ -114,29 +141,31 @@ <% $dt ? $dt->strftime($date_format) : '' %> -% } - -% if ( $conf->exists('cust_main-enable_spouse_birthdate') ) { -% my $dt = $cust_main->spouse_birthdate ne '' -% ? DateTime->from_epoch( 'epoch' => $cust_main->spouse_birthdate, -% 'time_zone' =>'floating', -% ) -% : ''; +% 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' +% ); <% mt('Spouse Date of Birth') |h %> <% $dt ? $dt->strftime($date_format) : '' %> -% } +% } +% } # enable_birthdate -% if ( $conf->exists('cust_main-require_censustract') ) { +% 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', +% ) +% : ''; - - <% mt('Census tract ([_1])', $cust_main->ship_location->censusyear) |h %> - - <% $cust_main->ship_location->censustract %> + <% mt('Anniversary Date') |h %> + <% $dt ? $dt->strftime($date_format) : '' %> % } @@ -154,7 +183,7 @@ % if ( $conf->exists('ticket_system-selfservice_edit_subject') ) { - <% mt('Edit ticket subjects') %> + <% emt('Edit ticket subjects') %> <% $cust_main->edit_subject ? 'yes' : 'no' %> @@ -175,4 +204,9 @@ my $curuser = $FS::CurrentUser::CurrentUser; my @agentnums = $curuser->agentnums; +my $status_label = ucfirst($cust_main->status); +if ($cust_main->is_status_delay_cancel) { + $status_label .= ' (Cancelled)'; +} +