[freeside-commits] branch FREESIDE_3_BRANCH updated. 3366d3f5937d6cd0120cbc4ebe92fda5f9d3f897
Jeremy Davis
jeremyd at 420.am
Thu Jan 22 08:32:18 PST 2015
The branch, FREESIDE_3_BRANCH has been updated
via 3366d3f5937d6cd0120cbc4ebe92fda5f9d3f897 (commit)
from 101091d3af57a314eead7f60d9fdc98fada8f8e8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3366d3f5937d6cd0120cbc4ebe92fda5f9d3f897
Author: Jeremy Davis <jeremyd at freeside.biz>
Date: Thu Jan 22 11:32:09 2015 -0500
Ticket 33046 additional changes to a2billing
diff --git a/FS/FS/part_export/a2billing.pm b/FS/FS/part_export/a2billing.pm
index b080d07..0821a34 100644
--- a/FS/FS/part_export/a2billing.pm
+++ b/FS/FS/part_export/a2billing.pm
@@ -227,6 +227,12 @@ sub export_insert {
did => $svc->phonenum,
billingtype => ($self->option('billtype') eq 'Dial Out Rate' ? 2 : 3),
activated => 1,
+ aleg_carrier_cost_min_offp => $part_pkg->option('a2billing_carrier_cost_min'),
+ aleg_carrier_initblock_offp => $part_pkg->option('a2billing_carrier_initblock_offp'),
+ aleg_carrier_increment_offp => $part_pkg->option('a2billing_carrier_increment_offp'),
+ aleg_retail_cost_min_offp => $part_pkg->option('a2billing_retail_cost_min_offp'),
+ aleg_retail_initblock_offp => $part_pkg->option('a2billing_retail_initblock_offp'),
+ aleg_retail_increment_offp => $part_pkg->option('a2billing_retail_increment_offp'),
);
# use 'did' as the key here so that if the DID already exists, we
diff --git a/FS/FS/part_pkg/global_Mixin.pm b/FS/FS/part_pkg/global_Mixin.pm
index 899e73a..2637729 100644
--- a/FS/FS/part_pkg/global_Mixin.pm
+++ b/FS/FS/part_pkg/global_Mixin.pm
@@ -65,7 +65,44 @@ tie my %a2billing_simultaccess, 'Tie::IxHash', (
'type' => 'select',
'select_options' => \%a2billing_simultaccess,
},
- },
+ 'a2billing_carrier_cost_min' => {
+ 'name' => 'A2Billing inbound carrier cost',
+ 'display_if' => sub {
+ FS::part_export->count("exporttype = 'a2billing'") > 0;
+ },
+ },
+ 'a2billing_carrer_initblock_offp' => {
+ 'name' => 'A2Billing inbound carrier min duration',
+ 'display_if' => sub {
+ FS::part_export->count("exporttype = 'a2billing'") > 0;
+ },
+ },
+ 'a2billing_carrier_increment_offp' => {
+ 'name' => 'A2Billing inbound carrier billing block',
+ 'display_if' => sub {
+ FS::part_export->count("exporttype = 'a2billing'") > 0;
+ },
+ },
+ 'a2billing_retail_cost_min_offp' => {
+ 'name' => 'A2Billing inbound retail cost',
+ 'display_if' => sub {
+ FS::part_export->count("exporttype = 'a2billing'") > 0;
+ },
+ },
+ 'a2billing_retail_initblock_offp' => {
+ 'name' => 'A2Billing inbound retail min duration',
+ 'display_if' => sub {
+ FS::part_export->count("exporttype = 'a2billing'") > 0;
+ },
+ },
+ 'a2billing_retail_increment_offp' => {
+ 'name' => 'A2Billing inbound retail billing block',
+ 'display_if' => sub {
+ FS::part_export->count("exporttype = 'a2billing'") > 0;
+ },
+ },
+
+ },
'fieldorder' => [ qw(
setup_fee
recur_fee
@@ -76,6 +113,12 @@ tie my %a2billing_simultaccess, 'Tie::IxHash', (
a2billing_tariff
a2billing_type
a2billing_simultaccess
+ a2billing_carrier_cost_min
+ a2billing_carrer_initblock_offp
+ a2billing_carrier_increment_offp
+ a2billing_retail_cost_min_offp
+ a2billing_retail_initblock_offp
+ a2billing_retail_increment_offp
)],
);
-----------------------------------------------------------------------
Summary of changes:
FS/FS/part_export/a2billing.pm | 6 ++++++
FS/FS/part_pkg/global_Mixin.pm | 45 +++++++++++++++++++++++++++++++++++++++-
2 files changed, 50 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list