summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-02-06 00:05:07 -0800
committerJeremy Davis <jeremyd@freeside.biz>2014-02-11 09:09:50 -0500
commita75d334b3f00e1945c668a5b5d22d2f76aeefb1d (patch)
treefec6324df219c5040f26c9af8d484a8d4c65cd50 /httemplate
parenta792cb684abd3f132c683821416e4c97a7ee471c (diff)
add "Ordered" status to customer number/link on agent browse, RT#27442
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/browse/agent.cgi25
-rwxr-xr-xhttemplate/search/cust_main.cgi1
2 files changed, 26 insertions, 0 deletions
diff --git a/httemplate/browse/agent.cgi b/httemplate/browse/agent.cgi
index 568d3f311..8da37a2dc 100755
--- a/httemplate/browse/agent.cgi
+++ b/httemplate/browse/agent.cgi
@@ -178,6 +178,26 @@ inactive
<TR>
<TH ALIGN="right" WIDTH="40%">
+ <FONT COLOR="#009999">
+ <% my $num_ordered = $agent->num_ordered_cust_main %>&nbsp;
+ </FONT>
+ </TH>
+
+ <TD>
+% if ( $num_ordered ) {
+
+ <A HREF="<% $cust_main_link %>&ordered=1">
+% }
+ordered
+% if ($num_ordered ) {
+</A>
+% }
+
+ <TD>
+ </TR>
+
+ <TR>
+ <TH ALIGN="right" WIDTH="40%">
<FONT COLOR="#00CC00">
<% my $num_active = $agent->num_active_cust_main %>&nbsp;
</FONT>
@@ -262,6 +282,11 @@ inactive
</TD>
</TR>
+ <!--ordered-->
+ <TR>
+ <TD>&nbsp;</TD>
+ </TR>
+
<TR>
<TH ALIGN="right" WIDTH="40%">
<FONT COLOR="#00CC00">
diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi
index 69f04f5e1..ff13f072b 100755
--- a/httemplate/search/cust_main.cgi
+++ b/httemplate/search/cust_main.cgi
@@ -393,6 +393,7 @@ if ( $cgi->param('browse')
push @qual, FS::cust_main->cancel_sql if $cgi->param('cancelled');
push @qual, FS::cust_main->prospect_sql if $cgi->param('prospect');
+ push @qual, FS::cust_main->ordered_sql if $cgi->param('ordered');
push @qual, FS::cust_main->active_sql if $cgi->param('active');
push @qual, FS::cust_main->inactive_sql if $cgi->param('inactive');
push @qual, FS::cust_main->susp_sql if $cgi->param('suspended');