summaryrefslogtreecommitdiff
path: root/FS/FS/part_pkg
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-07-22 11:52:22 -0700
committerIvan Kohler <ivan@freeside.biz>2013-07-22 11:52:22 -0700
commit4d81e21107622f8731a6301c3c811108840582fd (patch)
tree1ba3e9be4969d7877695742c0208983b381d7836 /FS/FS/part_pkg
parent3107476389f090334fe1d92df6fab68c366408b4 (diff)
nibblebill integrateion, RT#19587
Diffstat (limited to 'FS/FS/part_pkg')
-rw-r--r--FS/FS/part_pkg/base_delayed.pm12
-rw-r--r--FS/FS/part_pkg/base_rate.pm12
-rw-r--r--FS/FS/part_pkg/prepaid_nibblebill.pm26
-rw-r--r--FS/FS/part_pkg/sqlradacct_daily.pm2
-rw-r--r--FS/FS/part_pkg/voip_cdr.pm2
5 files changed, 52 insertions, 2 deletions
diff --git a/FS/FS/part_pkg/base_delayed.pm b/FS/FS/part_pkg/base_delayed.pm
new file mode 100644
index 000000000..550681115
--- /dev/null
+++ b/FS/FS/part_pkg/base_delayed.pm
@@ -0,0 +1,12 @@
+package FS::part_pkg::base_delayed;
+
+use strict;
+use vars qw( %info );
+
+#disabled stub, otherwise, the old files stick around and show up as price plans
+
+%info = (
+ 'disabled' => 1,
+);
+
+1;
diff --git a/FS/FS/part_pkg/base_rate.pm b/FS/FS/part_pkg/base_rate.pm
new file mode 100644
index 000000000..7453f98d3
--- /dev/null
+++ b/FS/FS/part_pkg/base_rate.pm
@@ -0,0 +1,12 @@
+package FS::part_pkg::base_rate;
+
+use strict;
+use vars qw( %info );
+
+#disabled stub, otherwise, the old files stick around and show up as price plans
+
+%info = (
+ 'disabled' => 1,
+);
+
+1;
diff --git a/FS/FS/part_pkg/prepaid_nibblebill.pm b/FS/FS/part_pkg/prepaid_nibblebill.pm
new file mode 100644
index 000000000..338bcf468
--- /dev/null
+++ b/FS/FS/part_pkg/prepaid_nibblebill.pm
@@ -0,0 +1,26 @@
+package FS::part_pkg::prepaid_nibblebill;
+use base qw( FS::part_pkg::flat );
+
+use strict;
+use vars qw(%info);
+
+%info = (
+ 'name' => 'Prepaid credit in FreeSWITCH mod_nibblebill',
+ #'name' => 'Prepaid (no automatic recurring)', #maybe use it here too
+ 'shortname' => 'Prepaid FreeSWITCH mod_nibblebill',
+ #'inherit_fields' => [ 'global_Mixin' ],
+ 'fields' => {
+ 'setup_fee' => { 'default' => 0, },
+ 'recur_fee' => { 'default' => 0, },
+ 'nibble_rate' => { 'name' => 'Nibble rate' },
+ },
+ 'fieldorder' => [ qw( setup_fee recur_fee nibble_rate ) ],
+ 'weight' => 49,
+);
+
+sub is_prepaid {
+ 1;
+}
+
+1;
+
diff --git a/FS/FS/part_pkg/sqlradacct_daily.pm b/FS/FS/part_pkg/sqlradacct_daily.pm
index 27fc1df3e..1a0bafe15 100644
--- a/FS/FS/part_pkg/sqlradacct_daily.pm
+++ b/FS/FS/part_pkg/sqlradacct_daily.pm
@@ -73,7 +73,7 @@ use Date::Format;
},
'fieldorder' => [qw( recur_included_hours recur_hourly_charge recur_hourly_cap recur_included_input recur_input_charge recur_input_cap recur_included_output recur_output_charge recur_output_cap recur_included_total recur_total_charge recur_total_cap global_cap monthly_cap )],
- 'weight' => 41,
+ 'weight' => 40.1,
);
sub price_info {
diff --git a/FS/FS/part_pkg/voip_cdr.pm b/FS/FS/part_pkg/voip_cdr.pm
index 1a9718641..4200f33bc 100644
--- a/FS/FS/part_pkg/voip_cdr.pm
+++ b/FS/FS/part_pkg/voip_cdr.pm
@@ -345,7 +345,7 @@ tie my %detail_formats, 'Tie::IxHash',
count_available_phones suspend_bill
)
],
- 'weight' => 40,
+ 'weight' => 41,
);
sub price_info {