From: ivan Date: Sat, 8 Oct 2011 23:12:58 +0000 (+0000) Subject: 4 decimal places for inbound rating, RT#14687 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=8b9693332912c44ab61efc7c3cb38d204682f7cc 4 decimal places for inbound rating, RT#14687 --- diff --git a/FS/FS/part_pkg/voip_inbound.pm b/FS/FS/part_pkg/voip_inbound.pm index da4ce87a8..208d9ca1e 100644 --- a/FS/FS/part_pkg/voip_inbound.pm +++ b/FS/FS/part_pkg/voip_inbound.pm @@ -267,7 +267,7 @@ sub calc_usage { $included_min = 0; } - $charge = sprintf('%.2f', ( $self->option('min_charge') * $charge_min ) + $charge = sprintf('%.4f', ( $self->option('min_charge') * $charge_min ) + 0.00000001 ); #so 1.00005 rounds to 1.0001 if ( $charge > 0 ) {