projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9e168ed
)
4 decimal places for inbound rating, RT#14687
author
ivan
<ivan>
Sat, 8 Oct 2011 23:12:58 +0000
(23:12 +0000)
committer
ivan
<ivan>
Sat, 8 Oct 2011 23:12:58 +0000
(23:12 +0000)
FS/FS/part_pkg/voip_inbound.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg/voip_inbound.pm
b/FS/FS/part_pkg/voip_inbound.pm
index
da4ce87
..
208d9ca
100644
(file)
--- 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;
}
$included_min = 0;
}
- $charge = sprintf('%.
2
f', ( $self->option('min_charge') * $charge_min )
+ $charge = sprintf('%.
4
f', ( $self->option('min_charge') * $charge_min )
+ 0.00000001 ); #so 1.00005 rounds to 1.0001
if ( $charge > 0 ) {
+ 0.00000001 ); #so 1.00005 rounds to 1.0001
if ( $charge > 0 ) {