summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Davis <jeremyd@freeside.biz>2015-01-07 14:01:42 -0500
committerJeremy Davis <jeremyd@freeside.biz>2015-01-07 14:01:42 -0500
commit51b14ce43f6cbf9f389ed7eb97565d609b167364 (patch)
treea6bdf8e1da21e2450c3c0dbf158bdae6f120eb6c
parentdde41fbab51d693dda80977a724ee722059d92f7 (diff)
Ticket #32903 A2Billing : SIMULTANEOUS ACCESS
-rw-r--r--FS/FS/part_export/a2billing.pm1
-rw-r--r--FS/FS/part_pkg/global_Mixin.pm15
2 files changed, 15 insertions, 1 deletions
diff --git a/FS/FS/part_export/a2billing.pm b/FS/FS/part_export/a2billing.pm
index 0547a21d0..6b3c31530 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 2dad511ac..899e73abc 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
)],
);