diff options
author | Mark Wells <mark@freeside.biz> | 2016-10-27 12:19:32 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-10-27 12:19:32 -0700 |
commit | d82acd06f8f8a431c69c3b14e3c5cb8252edb02d (patch) | |
tree | 9ef47557b76c3ba060e97500ab6f65a554c307a5 /FS/FS/part_pkg/global_Mixin.pm | |
parent | e3dbd4594395231687cc1b92cbe32d2f82693392 (diff) |
add calc_units to plans other than voip_cdr, #39639
Diffstat (limited to 'FS/FS/part_pkg/global_Mixin.pm')
-rw-r--r-- | FS/FS/part_pkg/global_Mixin.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/FS/FS/part_pkg/global_Mixin.pm b/FS/FS/part_pkg/global_Mixin.pm index e82602e..59eaaaa 100644 --- a/FS/FS/part_pkg/global_Mixin.pm +++ b/FS/FS/part_pkg/global_Mixin.pm @@ -30,6 +30,10 @@ sub validate_moneyn { return ''; } +tie my %count_available_phones, 'Tie::IxHash', ( + 0 => 'Provisioned phone services', + 1 => 'All available phone services', +); %info = ( 'disabled' => 1, @@ -63,6 +67,11 @@ sub validate_moneyn { 'name' => 'Automatic suspension period before cancelling (configuration setting part_pkg-delay_cancel-days)', 'type' => 'checkbox', }, + 'count_available_phones' => { 'name' => 'Count taxable phone lines', + 'type' => 'radio', + 'options' => \%count_available_phones, + 'default' => 0, + }, # miscellany--maybe put this in a separate module? @@ -134,6 +143,8 @@ sub validate_moneyn { unused_credit_change delay_cancel + count_available_phones + a2billing_tariff a2billing_type a2billing_simultaccess |