CDR report: add cdrtypenum search criteria, RT13402
[freeside.git] / httemplate / search / cdr.html
index 8f70fad..16ab575 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
 ###