From 5492ce9db024d9a5db797d39efdda10812154044 Mon Sep 17 00:00:00 2001 From: levinse Date: Thu, 23 Jun 2011 00:02:46 +0000 Subject: [PATCH] CDR report: add cdrtypenum search criteria, RT13402 --- httemplate/search/cdr.html | 13 +++++++++++++ httemplate/search/report_cdr.html | 8 ++++++++ 2 files changed, 21 insertions(+) diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index 8f70fad4f..16ab57523 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -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 ### diff --git a/httemplate/search/report_cdr.html b/httemplate/search/report_cdr.html index 508bf67ae..dcd574ec2 100644 --- a/httemplate/search/report_cdr.html +++ b/httemplate/search/report_cdr.html @@ -46,6 +46,14 @@ % } % #} + <% 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' ) %> -- 2.11.0