summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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