projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
464cbc7
)
#14049 Fix error
author
Jeremy Davis
<jeremyd@freeside.biz>
Mon, 8 Sep 2014 14:14:14 +0000
(10:14 -0400)
committer
Jeremy Davis
<jeremyd@freeside.biz>
Mon, 8 Sep 2014 14:14:14 +0000
(10:14 -0400)
FS/FS/part_export/nena2.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_export/nena2.pm
b/FS/FS/part_export/nena2.pm
index
e172a15
..
fa3597b
100644
(file)
--- a/
FS/FS/part_export/nena2.pm
+++ b/
FS/FS/part_export/nena2.pm
@@
-224,15
+224,15
@@
sub data {
my %hash = map { $_ => '' } @{ $item_format->names };
$hash{function_code} = $function_code{$action};
my %hash = map { $_ => '' } @{ $item_format->names };
$hash{function_code} = $function_code{$action};
-
+
# Add default area code if phonenum is 7 digits
# Add default area code if phonenum is 7 digits
- if ($self->option('area_code') =~ /^\d{3}$/ && $svc->phonenum =~ /^\d{7}$/ ){
- $svc->phonenum = $self->option('area_code'). $svc->phonenum;
+ my $phonenum = $svc->phonenum;
+ if ($self->option('area_code') =~ /^\d{3}$/ && $phonenum =~ /^\d{7}$/ ){
+ $phonenum = $self->option('area_code'). $svc->phonenum;
}
# phone number
}
# phone number
-
- $svc->phonenum =~ /^(\d{3})(\d*)$/;
+ $phonenum =~ /^(\d{3})(\d*)$/;
$hash{npa} = $1;
$hash{calling_number} = $2;
$hash{npa} = $1;
$hash{calling_number} = $2;