X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Fvoip_sqlradacct.pm;h=b856b5cdafbb808c3af58bc2315e525cef3dd5d6;hb=dafdfc24616b04a5ff594da31e2cdd03f58634b6;hp=441df587b3a92399746064ea8c7a2635899adc45;hpb=624b2d44625f69d71175c3348cae635d580c890b;p=freeside.git diff --git a/FS/FS/part_pkg/voip_sqlradacct.pm b/FS/FS/part_pkg/voip_sqlradacct.pm index 441df587b..b856b5cda 100644 --- a/FS/FS/part_pkg/voip_sqlradacct.pm +++ b/FS/FS/part_pkg/voip_sqlradacct.pm @@ -16,17 +16,8 @@ $DEBUG = 1; 'disabled' => 1, #they're sucked into our CDR table now instead 'name' => 'VoIP rating by plan of CDR records in an SQL RADIUS radacct table', 'shortname' => 'VoIP/telco CDR rating (external RADIUS)', + 'inherit_fields' => [ 'global_Mixin' ], 'fields' => { - 'setup_fee' => { 'name' => 'Setup fee for this package', - 'default' => 0, - }, - 'recur_fee' => { 'name' => 'Base recurring fee for this package', - 'default' => 0, - }, - 'unused_credit' => { 'name' => 'Credit the customer for the unused portion'. - ' of service at cancellation', - 'type' => 'checkbox', - }, 'ratenum' => { 'name' => 'Rate plan', 'type' => 'select', 'select_table' => 'rate', @@ -34,10 +25,17 @@ $DEBUG = 1; 'select_label' => 'ratename', }, }, - 'fieldorder' => [qw( setup_fee recur_fee unused_credit ratenum ignore_unrateable )], + 'fieldorder' => [qw( ratenum ignore_unrateable )], 'weight' => 40, ); +sub price_info { + my $self = shift; + my $str = $self->SUPER::price_info; + $str .= " plus usage" if $str; + $str; +} + sub calc_setup { my($self, $cust_pkg ) = @_; $self->option('setup_fee');