From 0a7d9371d3514312edd8661c621876cece4d5221 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 10 Aug 2006 13:50:45 +0000 Subject: add cust_main.agent_custid (at least to schema and customer view, no manual editing yet) --- httemplate/view/cust_main/misc.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 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 69e120573..742b35958 100644 --- a/httemplate/view/cust_main/misc.html +++ b/httemplate/view/cust_main/misc.html @@ -1,5 +1,6 @@ <% my( $cust_main ) = @_; + my $conf = new FS::Conf; %> <%= ntable("#cccccc") %><%= &ntable("#cccccc",2) %> @@ -25,8 +26,18 @@ $agent = $agents[0]; } - my @referrals = qsearch( 'part_referral', {} ); - unless ( scalar(@referrals) == 1 ) { + if ( $cust_main->agent_custid ) { +%> + + + Agent customer ref# + <%= $cust_main->agent_custid %> + + +<% + } + + unless ( FS::part_referral->num_part_referral == 1 ) { my $referral = qsearchs('part_referral', { 'refnum' => $cust_main->refnum } ); -- cgit v1.2.1