X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fmisc.html;h=d9bf91e1700baa60c889cc7b28d4d807a751c451;hp=15def3283c5b7086d543c2e3e9193e1c1afff9af;hb=4dc075fc38008d1c6cbe9b88b2bdb32bdc92adbf;hpb=52a824f9b11ca266be10c76894eaf6607344c8d0 diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html index 15def3283..d9bf91e17 100644 --- a/httemplate/view/cust_main/misc.html +++ b/httemplate/view/cust_main/misc.html @@ -1,15 +1,6 @@ +<% mt('Miscellaneous information') |h %> - - - - - - - - - - % my @part_tag = $cust_main->part_tag; % if ( $conf->config('cust_tag-location') =~ /^(cust_misc|)$/ && @part_tag ) { @@ -26,15 +17,6 @@ % } -%unless ( scalar(@agentnums) == 1 -% && !$curuser->access_right('View customers of all agents') ) { -% my $agent = qsearchs('agent',{ 'agentnum' => $cust_main->agentnum } ); - - - - -% } - % if ( $cust_main->agent_custid % && ! $conf->exists('cust_main-default_agent_custid') ) { @@ -47,15 +29,15 @@ % #if ( $cust_main->classnum ) { - - + + % #} % if ( $cust_main->salesnum ) { - - + + % } @@ -65,15 +47,15 @@ % } ); - - + + % } - - + - - + + - - + + % my $id_country = $conf->config('national_id-country'); @@ -115,14 +97,14 @@ % 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"; @@ -137,8 +119,8 @@ % : ''; - - + + % if ( $conf->exists('cust_main-enable_spouse') @@ -149,8 +131,8 @@ % ); - - + + % } @@ -164,8 +146,8 @@ % : ''; - - + + % } @@ -173,8 +155,8 @@ % if ( $cust_main->district ) { - - + + % } @@ -183,8 +165,8 @@ % if ( $conf->exists('ticket_system-selfservice_edit_subject') ) { - - + + % } @@ -204,4 +186,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)'; +} +
<% mt('Customer number') |h %><% $cust_main->display_custnum %>
<% mt('Status') |h %><% $cust_main->status_label %>
<% mt('Agent') |h %><% $agent->agentnum %>: <% $agent->agent %>
<% mt('Class') |h %><% $cust_main->classname || '('.emt('none').')' %><% mt('Class') |h %><% $cust_main->classname || '('.emt('none').')' %>
<% mt('Sales Person') |h %><% $cust_main->salesperson |h %><% mt('Sales Person') |h %><% $cust_main->salesperson |h %>
<% mt('Advertising source') |h %><% $referral->refnum %>: <% $referral->referral%><% mt('Advertising source') |h %><% $referral->refnum %>: <% $referral->referral%>
<% mt('Referring Customer') |h %> + <% mt('Referring Customer') |h %> % % my $referring_cust_main = ''; % if ( $cust_main->referral_custnum @@ -100,13 +82,13 @@
<% mt('Order taker') |h %><% $cust_main->otaker %><% mt('Order taker') |h %><% $cust_main->otaker %>
<% mt('Signup Date') |h %><% $cust_main->signupdate ? time2str($date_format, $cust_main->signupdate) : '' %><% mt('Signup Date') |h %><% $cust_main->signupdate ? time2str($date_format, $cust_main->signupdate) : '' %>
<% mt('NRIC') |h %><% mt('NRIC') |h %><% mt('Old IC/Passport') |h %><% mt('Old IC/Passport') |h %><% $cust_main->national_id |h %><% $cust_main->national_id |h %>
<% mt('Date of Birth') |h %><% $dt ? $dt->strftime($date_format) : '' %><% mt('Date of Birth') |h %><% $dt ? $dt->strftime($date_format) : '' %>
<% mt('Spouse Date of Birth') |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('Anniversary Date') |h %><% $dt ? $dt->strftime($date_format) : '' %>
<% mt('Tax district') |h %><% $cust_main->ship_location->district %><% mt('Tax district') |h %><% $cust_main->ship_location->district %>
<% mt('Edit ticket subjects') %><% $cust_main->edit_subject ? 'yes' : 'no' %><% emt('Edit ticket subjects') %><% $cust_main->edit_subject ? 'yes' : 'no' %>