don't send zip+4 to vitelity e911, RT#76262
authorIvan Kohler <ivan@freeside.biz>
Tue, 19 Sep 2017 19:44:46 +0000 (12:44 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 19 Sep 2017 19:44:46 +0000 (12:44 -0700)
FS/FS/part_export/vitelity.pm

index 51e134a..66b8bf8 100644 (file)
@@ -332,6 +332,7 @@ sub e911_send {
   return '' if $self->option('disable_e911');
 
   my %location = $svc_phone->location_hash;
+  $location{'zip'} =~ s/\-\d{4}$//;
   my %e911send = (
     'did'     => $svc_phone->phonenum,
     'address' => $location{'address1'},