X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Fglobal_Mixin.pm;h=899e73abc4767e70b099196e6f6ccb9d33285091;hb=2107b17616dd0bada097eebcdb8cea716edc55ba;hp=2dad511acaf46875f44a35751c96919ca8eb70f0;hpb=db72d963d3acd790df17fee77830b3742c75c3e7;p=freeside.git 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 )], );