Ticket #32903 A2Billing : SIMULTANEOUS ACCESS
authorJeremy Davis <jeremyd@freeside.biz>
Wed, 7 Jan 2015 18:58:53 +0000 (13:58 -0500)
committerJeremy Davis <jeremyd@freeside.biz>
Wed, 7 Jan 2015 18:58:53 +0000 (13:58 -0500)
FS/FS/part_export/a2billing.pm
FS/FS/part_pkg/global_Mixin.pm

index 0547a21..6b3c315 100644 (file)
@@ -142,6 +142,7 @@ sub export_insert {
       state     => $location->state,
       country   => $country3,
       zipcode   => $location->zip,
+      simultaccess  => $part_pkg->option('a2billing_simultaccess'),
       typepaid  => $part_pkg->option('a2billing_type'),
       sip_buddy => 1,
       company_name => $cust_main->company,
index 2dad511..899e73a 100644 (file)
@@ -9,6 +9,11 @@ tie my %a2billing_types, 'Tie::IxHash', (
   1 => 'Postpaid',
 );
 
+tie my %a2billing_simultaccess, 'Tie::IxHash', (
+  0 => 'Disabled',
+  1 => 'Enabled',
+);
+
 %info = (
   'disabled' => 1,
   'fields' => {
@@ -52,7 +57,14 @@ tie my %a2billing_types, 'Tie::IxHash', (
       'type'        => 'select',
       'select_options' => \%a2billing_types,
     },
-
+    'a2billing_simultaccess' => {
+      'name'        => 'A2Billing Simultaneous Access',
+      'display_if'  => sub {
+        FS::part_export->count("exporttype = 'a2billing'") > 0;
+      },
+      'type'        => 'select',
+      'select_options' => \%a2billing_simultaccess,
+    },  
   },
   'fieldorder' => [ qw(
     setup_fee
@@ -63,6 +75,7 @@ tie my %a2billing_types, 'Tie::IxHash', (
 
     a2billing_tariff
     a2billing_type
+    a2billing_simultaccess
   )],
 );