diff --git a/acqui/bookfund.pl b/acqui/bookfund.pl index f5f74bbad9..4769b9b323 100755 --- a/acqui/bookfund.pl +++ b/acqui/bookfund.pl @@ -84,7 +84,7 @@ while ( my $data = $sth->fetchrow_hashref ) { } if ( $left && $left > 0 ) { my $subtotal = $left * $data->{'ecost'}; - $data->{subtotal} = $subtotal; + $data->{subtotal} = sprintf("%.2f",$subtotal); $data->{'left'} = $left; push @commited_loop, $data; $total += $subtotal; @@ -93,7 +93,7 @@ while ( my $data = $sth->fetchrow_hashref ) { $template->param( COMMITTEDLOOP => \@commited_loop, - total => $total + total => sprintf("%.2f",$total), ); $sth->finish; $dbh->disconnect; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/bookfund.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/bookfund.tmpl index 9887188aee..3dba4b2e8a 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/bookfund.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/bookfund.tmpl @@ -33,7 +33,7 @@