X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Frate_region.pm;h=f4a0ab196afe93bb3ce7be4687406aef62909bb1;hb=91ffcc0ecc1e1da51fa4b99a342691caa85a5992;hp=65dfd2a25c4a08642a723c6f1b9b963690d04428;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1;p=freeside.git diff --git a/FS/FS/rate_region.pm b/FS/FS/rate_region.pm index 65dfd2a25..f4a0ab196 100644 --- a/FS/FS/rate_region.pm +++ b/FS/FS/rate_region.pm @@ -248,6 +248,7 @@ Returns all prefixes (see L) for this region. sub rate_prefix { my $self = shift; + map { $_ } #return $self->num_rate_prefix unless wantarray; sort { $a->countrycode cmp $b->countrycode or $a->npa cmp $b->npa or $a->nxx cmp $b->nxx @@ -264,7 +265,7 @@ destionation. sub dest_detail { my $self = shift; - qsearch( 'rate_detail', { 'dest_regionnum' => $self->regionnum, } ); + qsearch( 'rate_detail', { 'dest_regionnum' => $self->regionnum } ); } =item prefixes_short @@ -287,11 +288,13 @@ sub prefixes_short { } my $npa = $rate_prefix->npa; if ( $countrycode eq '1' ) { - $out .= '('. substr( $npa, 0, 3 ). ')'; + #$out .= '('. substr( $npa, 0, 3 ). ')'; + $out .= substr( $npa, 0, 3 ); $out .= ' '. substr( $npa, 3 ) if length($npa) > 3; } else { $out .= $rate_prefix->npa; } + $out .= '-'. $rate_prefix->nxx if $rate_prefix->nxx; $out .= ', '; } $out =~ s/, $//;