1 package FS::part_pkg::global_Mixin;
7 tie my %a2billing_types, 'Tie::IxHash', (
12 tie my %a2billing_simultaccess, 'Tie::IxHash', (
21 'name' => 'Setup fee for this package',
25 'name' => 'Recurring fee for this package',
28 'unused_credit_cancel' => {
29 'name' => 'Credit the customer for the unused portion of service at '.
33 'unused_credit_suspend' => {
34 'name' => 'Credit the customer for the unused portion of service when '.
38 'unused_credit_change' => {
39 'name' => 'Credit the customer for the unused portion of service when '.
44 'name' => 'Automatically suspend for one day before cancelling',
48 # miscellany--maybe put this in a separate module?
50 'a2billing_tariff' => {
51 'name' => 'A2Billing tariff group ID',
53 FS::part_export->count("exporttype = 'a2billing'") > 0;
57 'name' => 'A2Billing card type',
59 FS::part_export->count("exporttype = 'a2billing'") > 0;
62 'select_options' => \%a2billing_types,
64 'a2billing_simultaccess' => {
65 'name' => 'A2Billing Simultaneous Access',
67 FS::part_export->count("exporttype = 'a2billing'") > 0;
70 'select_options' => \%a2billing_simultaccess,
72 'a2billing_carrier_cost_min' => {
73 'name' => 'A2Billing inbound carrier cost',
75 FS::part_export->count("exporttype = 'a2billing'") > 0;
78 'a2billing_carrer_initblock_offp' => {
79 'name' => 'A2Billing inbound carrier min duration',
81 FS::part_export->count("exporttype = 'a2billing'") > 0;
84 'a2billing_carrier_increment_offp' => {
85 'name' => 'A2Billing inbound carrier billing block',
87 FS::part_export->count("exporttype = 'a2billing'") > 0;
90 'a2billing_retail_cost_min_offp' => {
91 'name' => 'A2Billing inbound retail cost',
93 FS::part_export->count("exporttype = 'a2billing'") > 0;
96 'a2billing_retail_initblock_offp' => {
97 'name' => 'A2Billing inbound retail min duration',
99 FS::part_export->count("exporttype = 'a2billing'") > 0;
102 'a2billing_retail_increment_offp' => {
103 'name' => 'A2Billing inbound retail billing block',
104 'display_if' => sub {
105 FS::part_export->count("exporttype = 'a2billing'") > 0;
110 'fieldorder' => [ qw(
114 unused_credit_suspend
120 a2billing_simultaccess
121 a2billing_carrier_cost_min
122 a2billing_carrer_initblock_offp
123 a2billing_carrier_increment_offp
124 a2billing_retail_cost_min_offp
125 a2billing_retail_initblock_offp
126 a2billing_retail_increment_offp