From 3ce7691203a7737406bf2d4442f7fd84b81f847e Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 23 Aug 2006 22:25:39 +0000 Subject: Will things ever be the same again? It's the final masonize --- httemplate/view/cust_main/misc.html | 89 +++++++++++++++++++------------------ 1 file changed, 45 insertions(+), 44 deletions(-) (limited to 'httemplate/view/cust_main/misc.html') diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html index f06a4fbd2..fc033b970 100644 --- a/httemplate/view/cust_main/misc.html +++ b/httemplate/view/cust_main/misc.html @@ -1,76 +1,77 @@ -<% - my( $cust_main ) = @_; - my $conf = new FS::Conf; -%> +% +% my( $cust_main ) = @_; +% my $conf = new FS::Conf; +% + -<%= ntable("#cccccc") %><%= &ntable("#cccccc",2) %> +<% ntable("#cccccc") %><% &ntable("#cccccc",2) %> Customer number - <%= $cust_main->custnum %> + <% $cust_main->custnum %> Status - <%= ucfirst($cust_main->status) %> + <% ucfirst($cust_main->status) %> +% +% my @agents = qsearch( 'agent', {} ); +% my $agent; +% unless ( scalar(@agents) == 1 ) { +% $agent = qsearchs('agent',{ 'agentnum' => $cust_main->agentnum } ); +% -<% - 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%> +% } -<% } %> 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. @@ -78,15 +79,15 @@ : $referring_cust_main->last. ', '. $referring_cust_main->first ) %> +% } -<% } %> Order taker - <%= $cust_main->otaker %> + <% $cust_main->otaker %> -- cgit v1.2.1