link to customer, don't show custnum
authorivan <ivan>
Thu, 6 Nov 2003 13:56:50 +0000 (13:56 +0000)
committerivan <ivan>
Thu, 6 Nov 2003 13:56:50 +0000 (13:56 +0000)
httemplate/search/report_receivables.cgi

index 241ca58..9938abd 100755 (executable)
@@ -172,10 +172,10 @@ END
   </TR>
 <% while ( my $row = $sth->fetchrow_hashref() ) { %>
   <TR>
   </TR>
 <% while ( my $row = $sth->fetchrow_hashref() ) { %>
   <TR>
-    <TD><%= $row->{'custnum'} %>:
+    <TD><A HREF="<% $p %>view/cust_main.cgi?<%= $row->{'custnum'} %>">
         <%= $row->{'company'} ? $row->{'company'}. ' (' : '' %>
         <%= $row->{'last'}. ', '. $row->{'first'} %>
         <%= $row->{'company'} ? $row->{'company'}. ' (' : '' %>
         <%= $row->{'last'}. ', '. $row->{'first'} %>
-        <%= $row->{'company'} ? ')' : '' %>
+        <%= $row->{'company'} ? ')' : '' %></A>
     </TD>
     <TD ALIGN="right">$<%= sprintf("%.2f", $row->{'owed_0_30'} ) %></TD>
     <TD ALIGN="right">$<%= sprintf("%.2f", $row->{'owed_30_60'} ) %></TD>
     </TD>
     <TD ALIGN="right">$<%= sprintf("%.2f", $row->{'owed_0_30'} ) %></TD>
     <TD ALIGN="right">$<%= sprintf("%.2f", $row->{'owed_30_60'} ) %></TD>