From: Mark Wells Date: Fri, 30 Sep 2016 22:31:13 +0000 (-0700) Subject: on 5.x, always show included minutes on invoice, #71455 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=29ed5abdfcc723bf8a3c29a0ae71775a07477033;hp=6dfa4e6c301d65fdecfb6891fe0bb545aabc8d43 on 5.x, always show included minutes on invoice, #71455 --- diff --git a/FS/FS/part_pkg/voip_cdr.pm b/FS/FS/part_pkg/voip_cdr.pm index 4b5158ef3..420026dcb 100644 --- a/FS/FS/part_pkg/voip_cdr.pm +++ b/FS/FS/part_pkg/voip_cdr.pm @@ -120,10 +120,6 @@ tie my %accountcode_tollfree_field, 'Tie::IxHash', 'min_included' => { 'name' => 'Minutes included when using the "single price per minute" or "prefix" rating method', }, - 'show_min_included' => { 'name' => 'Show included minutes as an invoice detail', - 'type' => 'checkbox', - }, - 'min_charge' => { 'name' => 'Charge per minute when using "single price per minute" rating method', }, @@ -329,7 +325,7 @@ tie my %accountcode_tollfree_field, 'Tie::IxHash', cdr_svc_method rating_method rounding ratenum intrastate_ratenum calls_included - min_charge min_included show_min_included + min_charge min_included sec_granularity ignore_unrateable default_prefix @@ -547,8 +543,7 @@ sub calc_usage { $formatter->finish; #writes into $details unshift @$details, $formatter->header if @$details; - if ( $self->option_cacheable('show_min_included', 1) - and $included_min_total > 0 ) { + if ( $included_min_total > 0 ) { my $min_detail = sprintf('%d / %d ', $included_min_total - $included_min_left,