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 # miscellany--maybe put this in a separate module?
46 'a2billing_tariff' => {
47 'name' => 'A2Billing tariff group ID',
49 FS::part_export->count("exporttype = 'a2billing'") > 0;
53 'name' => 'A2Billing card type',
55 FS::part_export->count("exporttype = 'a2billing'") > 0;
58 'select_options' => \%a2billing_types,
60 'a2billing_simultaccess' => {
61 'name' => 'A2Billing Simultaneous Access',
63 FS::part_export->count("exporttype = 'a2billing'") > 0;
66 'select_options' => \%a2billing_simultaccess,
68 'a2billing_carrier_cost_min' => {
69 'name' => 'A2Billing inbound carrier cost',
71 FS::part_export->count("exporttype = 'a2billing'") > 0;
74 'a2billing_carrer_initblock_offp' => {
75 'name' => 'A2Billing inbound carrier min duration',
77 FS::part_export->count("exporttype = 'a2billing'") > 0;
80 'a2billing_carrier_increment_offp' => {
81 'name' => 'A2Billing inbound carrier billing block',
83 FS::part_export->count("exporttype = 'a2billing'") > 0;
86 'a2billing_retail_cost_min_offp' => {
87 'name' => 'A2Billing inbound retail cost',
89 FS::part_export->count("exporttype = 'a2billing'") > 0;
92 'a2billing_retail_initblock_offp' => {
93 'name' => 'A2Billing inbound retail min duration',
95 FS::part_export->count("exporttype = 'a2billing'") > 0;
98 'a2billing_retail_increment_offp' => {
99 'name' => 'A2Billing inbound retail billing block',
100 'display_if' => sub {
101 FS::part_export->count("exporttype = 'a2billing'") > 0;
106 'fieldorder' => [ qw(
110 unused_credit_suspend
115 a2billing_simultaccess
116 a2billing_carrier_cost_min
117 a2billing_carrer_initblock_offp
118 a2billing_carrier_increment_offp
119 a2billing_retail_cost_min_offp
120 a2billing_retail_initblock_offp
121 a2billing_retail_increment_offp