From e0deb48e8e53b5c24896a8f136e0a92d0c48b55a Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Fri, 5 Sep 2014 10:52:13 -0400 Subject: #29052 Aradial provisioning change of path --- FS/FS/part_export/aradial.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'FS') diff --git a/FS/FS/part_export/aradial.pm b/FS/FS/part_export/aradial.pm index f3de614b1..afb17a699 100644 --- a/FS/FS/part_export/aradial.pm +++ b/FS/FS/part_export/aradial.pm @@ -118,7 +118,7 @@ sub request_user_edit { sub request { my $self = shift; my @params = @_; - my $path = '/Admin'; # I think this is always right + my $path = '/ArdWeb/ARDAdminIs.dll'; # I think this is always right my $url = URI->new('http://' . $self->host . $path); warn "$me request: \n".Dumper(\@params)."\n\n" if $DEBUG >= 2; my $response = $self->ua->post($url, \@params); -- cgit v1.2.1 From 03e71483c54ec32d701d6726ec0f5b6b8aa48b02 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Fri, 5 Sep 2014 11:41:26 -0400 Subject: #14049 Add default area code for 7 digit numbers --- FS/FS/part_export/nena2.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'FS') diff --git a/FS/FS/part_export/nena2.pm b/FS/FS/part_export/nena2.pm index 85576d20b..50f4b1695 100644 --- a/FS/FS/part_export/nena2.pm +++ b/FS/FS/part_export/nena2.pm @@ -23,6 +23,9 @@ tie %options, 'Tie::IxHash', ( 'customer_code' => { label => 'Customer code', type => 'text', }, + 'area_code' => { label => 'Default area code for 7 digit numbers', + type => 'text', + }, 'prefix' => { label => 'File name prefix', type => 'text', }, @@ -222,7 +225,13 @@ sub data { $hash{function_code} = $function_code{$action}; - # phone number + # 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 + } + + # phone number + $svc->phonenum =~ /^(\d{3})(\d*)$/; $hash{npa} = $1; $hash{calling_number} = $2; -- cgit v1.2.1 From 793f8a0bef01192d9ac889808a462f2166d71c4f Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Fri, 5 Sep 2014 12:01:09 -0400 Subject: #14049 fix regex --- FS/FS/part_export/nena2.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'FS') diff --git a/FS/FS/part_export/nena2.pm b/FS/FS/part_export/nena2.pm index 50f4b1695..e172a15a9 100644 --- a/FS/FS/part_export/nena2.pm +++ b/FS/FS/part_export/nena2.pm @@ -15,7 +15,7 @@ my %upload_targets; tie %options, 'Tie::IxHash', ( 'company_name' => { label => 'Company name for header record', - type => 'text' + type => 'text', }, 'company_id' => { label => 'NENA company ID', type => 'text', @@ -226,8 +226,8 @@ sub data { $hash{function_code} = $function_code{$action}; # 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 + if ($self->option('area_code') =~ /^\d{3}$/ && $svc->phonenum =~ /^\d{7}$/ ){ + $svc->phonenum = $self->option('area_code'). $svc->phonenum; } # phone number -- cgit v1.2.1