[freeside-commits] freeside/httemplate/view svc_phone.cgi, 1.12.2.6, 1.12.2.7
Ivan,,,
ivan at wavetail.420.am
Mon Aug 16 12:45:27 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail.420.am:/tmp/cvs-serv18964/httemplate/view
Modified Files:
Tag: FREESIDE_1_9_BRANCH
svc_phone.cgi
Log Message:
fix search of pending/billed CDRs to find src field too, RT#9640
Index: svc_phone.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_phone.cgi,v
retrieving revision 1.12.2.6
retrieving revision 1.12.2.7
diff -u -w -d -r1.12.2.6 -r1.12.2.7
--- svc_phone.cgi 12 Mar 2010 21:29:16 -0000 1.12.2.6
+++ svc_phone.cgi 16 Aug 2010 19:45:25 -0000 1.12.2.7
@@ -120,19 +120,28 @@
'billed' => 'done',
;
- #XXX src & charged party (& default prefix) as per voip_cdr.pm
- #XXX handle toll free too
-
my $number = $svc_phone->phonenum;
$number = $svc_phone->countrycode. $number
unless $svc_phone->countrycode eq '1';
+ #src & charged party as per voip_cdr.pm
+ my $search;
+ my $cust_pkg = $svc_phone->cust_svc->cust_pkg;
+ if ( $cust_pkg && $cust_pkg->part_pkg->option('disable_src') ) {
+ $search = "charged_party_or_src=$number";
+ } else {
+ $search = "src=$number";
+ }
+
+ #XXX default prefix as per voip_cdr.pm
+ #XXX handle toll free too
+
#my @links = map {
# qq(<A HREF="${p}search/cdr.html?src=$number;freesidestatus=$what{$_}">).
# "View $_ CDRs</A>";
#} keys(%what);
my @links = map {
- qq(<A HREF="${p}search/cdr.html?cdrbatchnum=__ALL__;charged_party=$number;freesidestatus=$what{$_}">).
+ qq(<A HREF="${p}search/cdr.html?cdrbatchnum=__ALL__;$search;freesidestatus=$what{$_}">).
"View $_ CDRs</A>";
} keys(%what);
More information about the freeside-commits
mailing list