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,
1 => 'Postpaid',
);
+tie my %a2billing_simultaccess, 'Tie::IxHash', (
+ 0 => 'Disabled',
+ 1 => 'Enabled',
+);
+
%info = (
'disabled' => 1,
'fields' => {
'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
a2billing_tariff
a2billing_type
+ a2billing_simultaccess
)],
);