X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2Fpart_pkg%2Fcdr_termination.pm;h=840da8224f2d95d8789cecdf43e0a06954aa3c8a;hb=0b1c458214a23b0ae3d8b8926989341e69468ff3;hp=d99903d7785aa4a1d17e35aa004b89a7ae72d55f;hpb=63a268637b2d51a8766412617724b9436439deb6;p=freeside.git diff --git a/FS/FS/part_pkg/cdr_termination.pm b/FS/FS/part_pkg/cdr_termination.pm index d99903d77..840da8224 100644 --- a/FS/FS/part_pkg/cdr_termination.pm +++ b/FS/FS/part_pkg/cdr_termination.pm @@ -16,15 +16,8 @@ tie my %temporalities, 'Tie::IxHash', %info = ( 'name' => 'VoIP rating of CDR records for termination partners.', 'shortname' => 'VoIP/telco CDR termination', + '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, - }, - #'cdr_column' => { 'name' => 'Column from CDR records', # 'type' => 'select', # 'select_enum' => [qw( @@ -49,15 +42,14 @@ tie my %temporalities, 'Tie::IxHash', 'select_options' => \%temporalities, }, - 'unused_credit' => { 'name' => 'Credit the customer for the unused portion'. - ' of service at cancellation', - 'type' => 'checkbox', - }, - 'cutoff_day' => { 'name' => 'Billing Day (1 - 28) for prorating or '. 'subscription', 'default' => '1', }, + 'add_full_period'=> { 'name' => 'When prorating first month, also bill '. + 'for one full period after that', + 'type' => 'checkbox', + }, 'recur_method' => { 'name' => 'Recurring fee method', #'type' => 'radio', @@ -66,7 +58,7 @@ tie my %temporalities, 'Tie::IxHash', 'select_options' => \%FS::part_pkg::recur_Common::recur_method, }, - #false laziness w/cdr_termination.pm + #false laziness w/voip_cdr.pm 'output_format' => { 'name' => 'CDR invoice display format', 'type' => 'select', 'select_options' => { FS::cdr::invoice_formats() }, @@ -80,12 +72,17 @@ tie my %temporalities, 'Tie::IxHash', 'type' => 'checkbox', }, + 'usage_mandate' => { 'name' => 'Always put usage details in separate section', + 'type' => 'checkbox', + }, + #eofalse + }, #cdr_column 'fieldorder' => [qw( - setup_fee recur_fee - recur_temporality unused_credit recur_method cutoff_day - output_format usage_section summarize_usage + recur_temporality recur_method cutoff_day + add_full_period + output_format usage_section summarize_usage usage_mandate ) ],