[freeside-commits] branch master updated. 2107b17616dd0bada097eebcdb8cea716edc55ba

Jeremy Davis jeremyd at 420.am
Wed Jan 7 11:00:39 PST 2015


The branch, master has been updated
       via  2107b17616dd0bada097eebcdb8cea716edc55ba (commit)
      from  db72d963d3acd790df17fee77830b3742c75c3e7 (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 2107b17616dd0bada097eebcdb8cea716edc55ba
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Wed Jan 7 13:58:53 2015 -0500

    Ticket #32903 A2Billing : SIMULTANEOUS ACCESS

diff --git a/FS/FS/part_export/a2billing.pm b/FS/FS/part_export/a2billing.pm
index 0547a21..6b3c315 100644
--- a/FS/FS/part_export/a2billing.pm
+++ b/FS/FS/part_export/a2billing.pm
@@ -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,
diff --git a/FS/FS/part_pkg/global_Mixin.pm b/FS/FS/part_pkg/global_Mixin.pm
index 2dad511..899e73a 100644
--- a/FS/FS/part_pkg/global_Mixin.pm
+++ b/FS/FS/part_pkg/global_Mixin.pm
@@ -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
   )],
 );
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_export/a2billing.pm |    1 +
 FS/FS/part_pkg/global_Mixin.pm |   15 ++++++++++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list