[Koha-patches] [PATCH] Bug 3166 Penny round off error when summing fines for patrons
darrellulm at smfpl.org
darrellulm at smfpl.org
Tue Apr 28 16:19:19 CEST 2009
From: root <root at kohavmware.(none)>
Thanks! D.Ulm
---
C4/Members.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/C4/Members.pm b/C4/Members.pm
index c0af300..a5892a2 100644
--- a/C4/Members.pm
+++ b/C4/Members.pm
@@ -1169,9 +1169,9 @@ sub GetMemberAccountRecords {
$data->{biblionumber} = $biblio->{biblionumber};
$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);
}
--
1.5.6.5
More information about the Koha-patches
mailing list