summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_main/misc.html
diff options
context:
space:
mode:
authorivan <ivan>2006-08-10 13:50:45 +0000
committerivan <ivan>2006-08-10 13:50:45 +0000
commit0a7d9371d3514312edd8661c621876cece4d5221 (patch)
tree8f1b253215631e99f68ed8468f17c01581a9c872 /httemplate/view/cust_main/misc.html
parent9b38584b79d03f6baa9a55bc623760261305e96c (diff)
add cust_main.agent_custid (at least to schema and customer view, no manual editing yet)
Diffstat (limited to 'httemplate/view/cust_main/misc.html')
-rw-r--r--httemplate/view/cust_main/misc.html15
1 files changed, 13 insertions, 2 deletions
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") %><TR><TD><%= &ntable("#cccccc",2) %>
@@ -25,8 +26,18 @@
$agent = $agents[0];
}
- my @referrals = qsearch( 'part_referral', {} );
- unless ( scalar(@referrals) == 1 ) {
+ if ( $cust_main->agent_custid ) {
+%>
+
+<TR>
+ <TD ALIGN="right">Agent customer ref#</TD>
+ <TD BGCOLOR="#ffffff"><%= $cust_main->agent_custid %></TD>
+</TR>
+
+<%
+ }
+
+ unless ( FS::part_referral->num_part_referral == 1 ) {
my $referral = qsearchs('part_referral', {
'refnum' => $cust_main->refnum
} );