[freeside-commits] freeside/httemplate/search cdr.html, 1.30, 1.31 report_cdr.html, 1.20, 1.21
Mark Wells
mark at wavetail.420.am
Fri Dec 9 16:58:17 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv10458/httemplate/search
Modified Files:
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.21
diff -u -w -d -r1.20 -r1.21
--- report_cdr.html 23 Jun 2011 00:12:40 -0000 1.20
+++ report_cdr.html 10 Dec 2011 00:58:15 -0000 1.21
@@ -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.30
retrieving revision 1.31
diff -u -w -d -r1.30 -r1.31
--- cdr.html 18 Nov 2011 00:11:52 -0000 1.30
+++ cdr.html 10 Dec 2011 00:58:15 -0000 1.31
@@ -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