From: ivan Date: Mon, 24 Jan 2011 00:56:16 +0000 (+0000) Subject: torrus, RT#10574 X-Git-Tag: freeside_2_3_0~701 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=123e8b3e9bb0463e2cfbab33301c359ef8d5bb13;p=freeside.git torrus, RT#10574 --- diff --git a/FS/FS/part_pkg/torrus_Common.pm b/FS/FS/part_pkg/torrus_Common.pm index cbd9ee3fe..66624ada0 100644 --- a/FS/FS/part_pkg/torrus_Common.pm +++ b/FS/FS/part_pkg/torrus_Common.pm @@ -80,7 +80,7 @@ sub calc_usage { #add usage details to invoice my $l = $self->_torrus_label; - my $d = "Last month's usage for $serviceid: ". sprintf('%2f',$max). $l; + my $d = "Last month's usage for $serviceid: ". sprintf('%.2f',$max). $l; $d .= " (". ($max+$inc). "$l - $inc$l included)" if $inc; $d .= " @ $money_char$rate/$l: $money_char$amount";