Bug#: 3230 Penny fine, needs fixed, just a round off. Please

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Darrell Ulm 2009-07-22 10:06:53 -04:00 committed by Henri-Damien LAURENT
parent 92ead106ac
commit 976d31ec6e
1 changed files with 2 additions and 2 deletions

View File

@ -1131,9 +1131,9 @@ sub GetMemberAccountRecords {
$data->{title} = $biblio->{title};
$acctlines[$numlines] = $data;
$numlines++;
$total += int(100 * $data->{'amountoutstanding'}); # convert float to integer to avoid round-off errors
$total += int(1000 * $data->{'amountoutstanding'}); # convert float to integer to avoid round-off errors
}
$total /= 100;
$total /= 1000;
$sth->finish;
return ( $total, \@acctlines,$numlines);
}