X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fmisc.html;h=9528db2437f6bb3ba762364e60462242a3fae671;hb=633c48448d9468690b7ad77eb6ff7c660a286658;hp=742b35958a8c81e2081e120e018709e8400b4437;hpb=0a7d9371d3514312edd8661c621876cece4d5221;p=freeside.git
diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html
index 742b35958..9528db243 100644
--- a/httemplate/view/cust_main/misc.html
+++ b/httemplate/view/cust_main/misc.html
@@ -1,74 +1,78 @@
-<%
- my( $cust_main ) = @_;
- my $conf = new FS::Conf;
-%>
+%
+% my( $cust_main ) = @_;
+% my $conf = new FS::Conf;
+% my $date_format = ($conf->config('date_format') || "%m/%d/%Y");
+%
+
+
+<% ntable("#cccccc") %>
<% &ntable("#cccccc",2) %>
-<%= ntable("#cccccc") %> |
<%= &ntable("#cccccc",2) %>
|
Customer number |
- <%= $cust_main->custnum %> |
+ <% $cust_main->custnum %> |
-<%
- my @agents = qsearch( 'agent', {} );
- my $agent;
- unless ( scalar(@agents) == 1 ) {
- $agent = qsearchs('agent',{ 'agentnum' => $cust_main->agentnum } );
-%>
+
+ Status |
+ <% ucfirst($cust_main->status) %> |
+
+%
+% my @agents = qsearch( 'agent', {} );
+% my $agent;
+% unless ( scalar(@agents) == 1 ) {
+% $agent = qsearchs('agent',{ 'agentnum' => $cust_main->agentnum } );
+%
+
Agent |
- <%= $agent->agentnum %>: <%= $agent->agent %> |
+ <% $agent->agentnum %>: <% $agent->agent %> |
+%
+% } else {
+% $agent = $agents[0];
+% }
+%
+% if ( $cust_main->agent_custid ) {
+%
-<%
- } else {
- $agent = $agents[0];
- }
-
- if ( $cust_main->agent_custid ) {
-%>
Agent customer ref# |
- <%= $cust_main->agent_custid %> |
+ <% $cust_main->agent_custid %> |
+%
+% }
+%
+% unless ( FS::part_referral->num_part_referral == 1 ) {
+% my $referral = qsearchs('part_referral', {
+% 'refnum' => $cust_main->refnum
+% } );
+%
-<%
- }
-
- unless ( FS::part_referral->num_part_referral == 1 ) {
- my $referral = qsearchs('part_referral', {
- 'refnum' => $cust_main->refnum
- } );
-%>
Advertising source |
- <%= $referral->refnum %>: <%= $referral->referral%> |
+ <% $referral->refnum %>: <% $referral->referral%> |
+% }
-<% } %>
-
- Order taker |
- <%= $cust_main->otaker %> |
-
Referring Customer |
+%
+% my $referring_cust_main = '';
+% if ( $cust_main->referral_custnum
+% && ( $referring_cust_main =
+% qsearchs('cust_main', { custnum => $cust_main->referral_custnum } )
+% )
+% ) {
+%
+
+<%$cust_main->referral_custnum %>:
<%
- my $referring_cust_main = '';
- if ( $cust_main->referral_custnum
- && ( $referring_cust_main =
- qsearchs('cust_main', { custnum => $cust_main->referral_custnum } )
- )
- ) {
-%>
-
-<%=$cust_main->referral_custnum %>:
-<%=
( $referring_cust_main->company
? $referring_cust_main->company. ' ('.
$referring_cust_main->last. ', '. $referring_cust_main->first.
@@ -76,11 +80,33 @@
: $referring_cust_main->last. ', '. $referring_cust_main->first
)
%>
+% }
-<% } %>
|
+
+ Order taker |
+ <% $cust_main->otaker %> |
+
+
+
+ Signup Date |
+ <% $cust_main->signupdate ? time2str($date_format, $cust_main->signupdate) : '' %> |
+
+
+% if ( $conf->exists('cust_main-enable_birthdate') ) {
+% my $dt = DateTime->from_epoch(epoch => $cust_main->birthdate,
+% time_zone=>'floating',
+% );
+
+
+ Date of Birth |
+ <% $cust_main->birthdate ne '' ? $dt->strftime($date_format) : '' %> |
+
+
+% }
+