X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fnena2.pm;h=8d59425b71cedf5a14cd10f87e02b707cf83b90c;hp=4d3f08f988bc0b0dc0f447e7e8f298918582cf1a;hb=95759ff41840195d29cc28e492c895d6db55dd8f;hpb=3a7f3a2e81cc7423ba9a08fd4b28b3b5f4f227a2 diff --git a/FS/FS/part_export/nena2.pm b/FS/FS/part_export/nena2.pm index 4d3f08f98..8d59425b7 100644 --- a/FS/FS/part_export/nena2.pm +++ b/FS/FS/part_export/nena2.pm @@ -263,6 +263,15 @@ sub data { # customer name and class $hash{customer_name} = $svc->phone_name_or_cust; $hash{class_of_service} = $svc->e911_class; + if (!$hash{class_of_service}) { + # then guess + my $cust_main = $svc->cust_main; + if ($cust_main->company) { + $hash{class_of_service} = '2'; + } else { + $hash{class_of_service} = '1'; + } + } $hash{type_of_service} = $svc->e911_type || '0'; $hash{exchange} = '';