[freeside-commits] freeside/httemplate/search cdr.html, 1.29.2.1, 1.29.2.2 report_cdr.html, 1.20, 1.20.2.1

Mark Wells mark at wavetail.420.am
Fri Dec 9 16:58:26 PST 2011


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv10595/httemplate/search

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	cdr.html report_cdr.html 
Log Message:
option to keep track of unrateable CDRs, #15502

Index: report_cdr.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_cdr.html,v
retrieving revision 1.20
retrieving revision 1.20.2.1
diff -u -w -d -r1.20 -r1.20.2.1
--- report_cdr.html	23 Jun 2011 00:12:40 -0000	1.20
+++ report_cdr.html	10 Dec 2011 00:58:24 -0000	1.20.2.1
@@ -22,9 +22,10 @@
     <TD ALIGN="right">Status: </TD>
     <TD>
       <SELECT NAME="freesidestatus">
-        <OPTION VALUE="">(all)
-        <OPTION VALUE="NULL">unprocessed
-        <OPTION VALUE="done">processed
+        <OPTION VALUE="">(all)</OPTION>
+        <OPTION VALUE="NULL">unprocessed</OPTION>
+        <OPTION VALUE="done">processed</OPTION>
+        <OPTION VALUE="failed">skipped</OPTION>
       </SELECT>
     </TD>
   </TR>

Index: cdr.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cdr.html,v
retrieving revision 1.29.2.1
retrieving revision 1.29.2.2
diff -u -w -d -r1.29.2.1 -r1.29.2.2
--- cdr.html	18 Nov 2011 00:11:52 -0000	1.29.2.1
+++ cdr.html	10 Dec 2011 00:58:24 -0000	1.29.2.2
@@ -80,15 +80,21 @@
 # freesidestatus
 ###
 
-if ( $cgi->param('freesidestatus') eq 'NULL' ) {
+my $status = $cgi->param('freesidestatus');
+if ( $status eq 'NULL' ) {
 
   $title = "Unprocessed $title";
   $hashref->{'freesidestatus'} = ''; # Record.pm will take care of it
   push @search, "( freesidestatus IS NULL OR freesidestatus = '' )";
 
-} elsif ( $cgi->param('freesidestatus') =~ /^([\w ]+)$/ ) {
+} elsif ( $status =~ /^([\w ]+)$/ ) {
 
+  if ( $status eq 'done' ) {
   $title = "Processed $title";
+  }
+  elsif ( $status eq 'failed' ) {
+    $title = "Skipped $title";
+  }
   $hashref->{'freesidestatus'} = $1;
   push @search, "freesidestatus = '$1'";
 



More information about the freeside-commits mailing list