X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_phone.cgi;h=27d270c89b1fc416f79e7c8e74ef7875534defd5;hb=b1dacaef3f9773c72b4c6f525d2f1e584e1432fc;hp=ebde4222850685c7e046d195f2d8e121fa2f13f4;hpb=9e570867c27b5336f4fa701c84b70fd65791f87c;p=freeside.git
diff --git a/httemplate/view/svc_phone.cgi b/httemplate/view/svc_phone.cgi
index ebde42228..27d270c89 100644
--- a/httemplate/view/svc_phone.cgi
+++ b/httemplate/view/svc_phone.cgi
@@ -29,18 +29,16 @@ my $html_foot = sub {
# E911 Info
###
- my $loc = $svc_phone->cust_location_or_main;
-
my $e911 =
'E911 Information'.
&ntable("#cccccc"). '
'. ntable("#cccccc",2).
' |
Location | '.
''.
- $loc->location_label( 'join_string' => ' ',
- 'double_space' => ' ',
- 'escape_function' => \&encode_entities,
- 'countrydefault' => $countrydefault,
- ).
+ $svc_phone->location_label( 'join_string' => ' ',
+ 'double_space' => ' ',
+ 'escape_function' => \&encode_entities,
+ 'countrydefault' => $countrydefault,
+ ).
' |
'.
''.
'
'
@@ -122,19 +120,28 @@ my $html_foot = sub {
'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=$number";
+ } else {
+ $search = "charged_party_or_src=$number";
+ }
+
+ #XXX default prefix as per voip_cdr.pm
+ #XXX handle toll free too
+
#my @links = map {
# qq().
# "View $_ CDRs";
#} keys(%what);
my @links = map {
- qq().
+ qq().
"View $_ CDRs";
} keys(%what);