[freeside-commits] branch FREESIDE_3_BRANCH updated. 323ba5578a82c2e6c7ed0b83952504861809fb2b
Mark Wells
mark at 420.am
Sun Sep 28 21:22:33 PDT 2014
The branch, FREESIDE_3_BRANCH has been updated
via 323ba5578a82c2e6c7ed0b83952504861809fb2b (commit)
from 0dd55b961c4f5854b458a22fff628ac27d13339e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 323ba5578a82c2e6c7ed0b83952504861809fb2b
Author: Mark Wells <mark at freeside.biz>
Date: Sun Sep 28 21:22:26 2014 -0700
NENA2 export: supply a default value for class of service, #14049
diff --git a/FS/FS/part_export/nena2.pm b/FS/FS/part_export/nena2.pm
index 4d3f08f..8d59425 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} = '';
-----------------------------------------------------------------------
Summary of changes:
FS/FS/part_export/nena2.pm | 9 +++++++++
1 file changed, 9 insertions(+)
More information about the freeside-commits
mailing list