X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fphone_avail.html;h=1335379ae107466337509c5aedf251f640d81b1b;hb=e168ca3db2702bd9a540316cd9bd840238dd19ce;hp=8dec7b247531f3e5bc81ebab2afb1acf51662a89;hpb=ec49e826250476a58686bfb322e7f1839e35983d;p=freeside.git diff --git a/httemplate/search/phone_avail.html b/httemplate/search/phone_avail.html index 8dec7b247..1335379ae 100644 --- a/httemplate/search/phone_avail.html +++ b/httemplate/search/phone_avail.html @@ -3,7 +3,7 @@ 'name_singular' => 'phone number', 'query' => { 'table' => 'phone_avail', - 'hashref' => {}, + 'hashref' => $hashref, 'select' => join(', ', 'phone_avail.*', 'cust_main.custnum', @@ -129,6 +129,9 @@ my $addl_from = ' LEFT JOIN cust_svc USING ( svcnum ) '. my $count_query = "SELECT COUNT(*) FROM phone_avail $search"; #$addl_from? +my $hashref = {}; +$hashref->{'ordernum'} = $1 if $cgi->param('ordernum') =~ /^(\d+)$/; + my $link_cust = sub { my $phone_avail = shift; if ( $phone_avail->svcnum ) {