summaryrefslogtreecommitdiff
path: root/FS/FS/part_pkg/voip_cdr.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-01-24 17:00:32 -0800
committerMark Wells <mark@freeside.biz>2014-01-24 17:00:32 -0800
commit150adef6214fdcc00c18e03c11d7ea17a96d9105 (patch)
tree4a9b25d638f864e1af7953b8da03a8f644be0696 /FS/FS/part_pkg/voip_cdr.pm
parent8d6ea7d8fddec3fd471a0e68f297d20e191c6f11 (diff)
reverse usage_nozero default, #25394, from #19917
Diffstat (limited to 'FS/FS/part_pkg/voip_cdr.pm')
-rw-r--r--FS/FS/part_pkg/voip_cdr.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/FS/FS/part_pkg/voip_cdr.pm b/FS/FS/part_pkg/voip_cdr.pm
index db0b9e7..a55832d 100644
--- a/FS/FS/part_pkg/voip_cdr.pm
+++ b/FS/FS/part_pkg/voip_cdr.pm
@@ -279,7 +279,7 @@ tie my %accountcode_tollfree_field, 'Tie::IxHash',
},
#eofalse
- 'usage_nozero' => { 'name' => 'Omit details for included / no-charge calls.',
+ 'usage_showzero' => { 'name' => 'Show details for included / no-charge calls.',
'type' => 'checkbox',
},
@@ -352,7 +352,7 @@ tie my %accountcode_tollfree_field, 'Tie::IxHash',
output_format
selfservice_format selfservice_inbound_format
usage_mandate usage_section summarize_usage
- usage_nozero bill_every_call bill_inactive_svcs
+ usage_showzero bill_every_call bill_inactive_svcs
count_available_phones suspend_bill
)
],
@@ -416,7 +416,7 @@ sub calc_usage {
: 'default'
);
- my $usage_nozero = $self->option('usage_nozero', 1);
+ my $usage_showzero = $self->option('usage_showzero', 1);
my $formatter = FS::detail_format->new($output_format, buffer => $details);
@@ -508,7 +508,8 @@ sub calc_usage {
$error = $cdr->set_status('done');
}
die $error if $error;
- $formatter->append($cdr) unless $usage_nozero && $cdr->rated_price == 0;
+ $formatter->append($cdr)
+ unless $cdr->rated_price == 0 and not $usage_showzero;
$cdr_search->adjust(1) if $cdr->freesidestatus eq 'rated';
} #$cdr