X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fmisc.html;h=5987459a58d90d96604e9cfae4cda19020a8de65;hb=8737dc99be5a9874c40f36d1420447253ee12c31;hp=8bcab0df5e27b4d55981d847937ffc4525efd5d5;hpb=8966833a87b9a002c9d72c56832e35b55628dc81;p=freeside.git
diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html
index 8bcab0df5..5987459a5 100644
--- a/httemplate/view/cust_main/misc.html
+++ b/httemplate/view/cust_main/misc.html
@@ -1,20 +1,36 @@
<% ntable("#cccccc") %>
<% &ntable("#cccccc",2) %>
|
- Customer number |
+ <% mt('Customer number') |h %> |
<% $cust_main->display_custnum %> |
- Status |
+ <% mt('Status') |h %> |
<% ucfirst($cust_main->status) %> |
+% my @part_tag = $cust_main->part_tag;
+% if ( $conf->config('cust_tag-location') =~ /^(cust_misc|)$/ && @part_tag ) {
+
+ <% mt('Tags') |h %> |
+
+% foreach my $part_tag ( @part_tag ) {
+ tagcolor)
+ ? 'STYLE="background-color:#'.$part_tag->tagcolor.'"'
+ : '' %>
+ ><% $part_tag->tagname.': '. $part_tag->tagdesc |h %>
+
+% }
+ |
+
+% }
+
%unless ( scalar(@agentnums) == 1
% && !$curuser->access_right('View customers of all agents') ) {
% my $agent = qsearchs('agent',{ 'agentnum' => $cust_main->agentnum } );
- Agent |
+ <% mt('Agent') |h %> |
<% $agent->agentnum %>: <% $agent->agent %> |
% }
@@ -23,7 +39,7 @@
% && ! $conf->exists('cust_main-default_agent_custid') ) {
- Agent customer ref# |
+ <% mt('Agent customer ref#') |h %> |
<% $cust_main->agent_custid %> |
%
@@ -31,8 +47,8 @@
% #if ( $cust_main->classnum ) {
- Class |
- <% $cust_main->classname || '(none)' %> |
+ <% mt('Class') |h %> |
+ <% $cust_main->classname || '('.emt('none').')' %> |
% #}
@@ -42,14 +58,14 @@
% } );
- Advertising source |
+ <% mt('Advertising source') |h %> |
<% $referral->refnum %>: <% $referral->referral%> |
% }
- Referring Customer |
+ <% mt('Referring Customer') |h %> |
%
% my $referring_cust_main = '';
@@ -77,12 +93,12 @@
|
- Order taker |
+ <% mt('Order taker') |h %> |
<% $cust_main->otaker %> |
- Signup Date |
+ <% mt('Signup Date') |h %> |
<% $cust_main->signupdate ? time2str($date_format, $cust_main->signupdate) : '' %> |
@@ -94,7 +110,7 @@
% : '';
- Date of Birth |
+ <% mt('Date of Birth') |h %> |
<% $dt ? $dt->strftime($date_format) : '' %> |
@@ -103,12 +119,21 @@
% if ( $conf->exists('cust_main-require_censustract') ) {
- Census tract |
+ <% mt('Census tract') |h %> |
<% $cust_main->censustract %> |
% }
+% if ( $conf->exists('ticket_system-selfservice_edit_subject') ) {
+
+
+ <% mt('Edit ticket subjects') %> |
+ <% $cust_main->edit_subject ? 'yes' : 'no' %> |
+
+
+% }
+
<%init>
@@ -116,6 +141,8 @@ my( $cust_main ) = @_;
my $conf = new FS::Conf;
my $date_format = ($conf->config('date_format') || "%m/%d/%Y");
-my @agentnums = $FS::CurrentUser::CurrentUser->agentnums;
+my $curuser = $FS::CurrentUser::CurrentUser;
+
+my @agentnums = $curuser->agentnums;
%init>