[Koha-patches] [PATCH] Bug#: 3230 Penny fine, needs fixed, just a round off. Please

Darrell Ulm darrellulm at kohavmware
Wed Jul 22 16:06:53 CEST 2009


---
 C4/Members.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/C4/Members.pm b/C4/Members.pm
index a76e078..b2ce916 100644
--- a/C4/Members.pm
+++ b/C4/Members.pm
@@ -1129,9 +1129,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);
 }
-- 
1.5.6.5




More information about the Koha-patches mailing list