[freeside-commits] branch FREESIDE_3_BRANCH updated. 51b14ce43f6cbf9f389ed7eb97565d609b167364
Jeremy Davis
jeremyd at 420.am
Wed Jan 7 11:01:52 PST 2015
The branch, FREESIDE_3_BRANCH has been updated
via 51b14ce43f6cbf9f389ed7eb97565d609b167364 (commit)
from dde41fbab51d693dda80977a724ee722059d92f7 (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 51b14ce43f6cbf9f389ed7eb97565d609b167364
Author: Jeremy Davis <jeremyd at freeside.biz>
Date: Wed Jan 7 14:01:42 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