X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fmisc.html;h=f0ecf8f70f93caa20f9445d4a9797d5edde97abc;hb=d647e72f22abc6715b6597d17a68851409b53d0b;hp=5311aa5ae30d96576edbbb259cb9d5556fe4ca3e;hpb=5f2093d63b321716766535a0ff3e7420882a8888;p=freeside.git diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html index 5311aa5ae..f0ecf8f70 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') ) { @@ -141,21 +123,20 @@ -% } - -% 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' +% ); -% } +% } +% } # enable_birthdate % if ( $conf->exists('cust_main-enable_anniversary_date') ) { % my $dt = $cust_main->anniversary_date ne '' @@ -171,17 +152,6 @@ % } -% if ( $conf->exists('cust_main-require_censustract') ) { - - - - - - -% } - % if ( $cust_main->district ) { @@ -216,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 %><% ucfirst($cust_main->status) %>
<% mt('Agent') |h %><% $agent->agentnum %>: <% $agent->agent %>
<% $dt ? $dt->strftime($date_format) : '' %>
<% mt('Spouse Date of Birth') |h %> <% $dt ? $dt->strftime($date_format) : '' %>
- <% mt('Census tract ([_1])', $cust_main->ship_location->censusyear) |h %> - <% $cust_main->ship_location->censustract %>