CDR report: add cdrtypenum search criteria, RT13402
authorlevinse <levinse>
Thu, 23 Jun 2011 00:02:45 +0000 (00:02 +0000)
committerlevinse <levinse>
Thu, 23 Jun 2011 00:02:45 +0000 (00:02 +0000)
httemplate/search/cdr.html
httemplate/search/report_cdr.html

index c77fc35..cefc0fe 100644 (file)
@@ -95,6 +95,19 @@ if ( $cgi->param('freesidestatus') eq 'NULL' ) {
 }
 
 ###
+# cdrtypenum
+###
+
+if ( $cgi->param('cdrtypenum') =~ /^(\d+)$/ ) {
+    $hashref->{'cdrtypenum'} = $1;
+    push @search, "cdrtypenum = $1";
+}
+elsif ( $cgi->param('cdrtypenum') eq 'none' ) {
+    $hashref->{'cdrtypenum'} = '';
+    push @search, "cdrtypenum is null";
+}
+
+###
 # termpartNstatus
 ###
 
index 11049ac..07299d5 100644 (file)
 %   }
 % #}
 
+  <% include('/elements/tr-select-table.html',
+            field   => 'cdrtypenum',
+            label   => 'CDR Type',
+            table   => 'cdr_type',
+            name_col    => 'cdrtypename',
+            post_options => [ 'none', 'none' ] )
+  %>
+
   <% include ( '/elements/tr-input-beginning_ending.html' ) %>
 
   <TR>