respect CDR price rounding in invoice details, #72451 and #72330
[freeside.git] / FS / FS / part_pkg / voip_tiered.pm
index 0ad0ff6..d8607a6 100644 (file)
@@ -196,7 +196,10 @@ sub calc_usage {
 
   my $output_format = $self->option('output_format', 'Hush!') || 'default';
 
-  my $formatter = FS::detail_format->new($output_format, buffer => $details);
+  my $formatter = FS::detail_format->new($output_format,
+    buffer => $details,
+    rounding => ($self->option_cacheable('rounding') || 2))
+  ;
 
   my $charges = 0;