'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() },
'type' => 'checkbox',
},
- },
+ 'usage_mandate' => { 'name' => 'Always put usage details in separate section',
+ 'type' => 'checkbox',
+ },
+ #eofalse
+ },
+ #cdr_column
'fieldorder' => [qw(
setup_fee recur_fee
- cdr_column
recur_temporality unused_credit recur_method cutoff_day
- output_format usage_section summarize_usage
+ output_format usage_section summarize_usage usage_mandate
)
],
#add a cdr_termination record and the charges
- my $term_price = sprintf('%.2f', $cdr->rated_price * $term_percent / 100 );
+ # XXX config?
+ #my $term_price = sprintf('%.2f', $cdr->rated_price * $term_percent / 100 );
+ my $term_price = sprintf('%.4f', $cdr->rated_price * $term_percent / 100 );
my $cdr_termination = new FS::cdr_termination {
'acctid' => $cdr->acctid,