From 8ecde0ad39ce9931b1ac33ef5783e31c8e0ec548 Mon Sep 17 00:00:00 2001
From: Dorian Merz <merz@ub.uni-leipzig.de>
Date: Thu, 30 Aug 2018 09:41:19 +0200
Subject: [PATCH] refs #13879 * bugfix in
 \finc\ILS\Driver\FincILS::getFinesTotal * changed datatype of total amount to
 float * now adds up sum correctly

---
 module/finc/src/finc/ILS/Driver/FincILS.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/module/finc/src/finc/ILS/Driver/FincILS.php b/module/finc/src/finc/ILS/Driver/FincILS.php
index c0e9f09883d..c9d1b8ae164 100644
--- a/module/finc/src/finc/ILS/Driver/FincILS.php
+++ b/module/finc/src/finc/ILS/Driver/FincILS.php
@@ -1267,9 +1267,9 @@ class FincILS extends PAIA implements LoggerAwareInterface
      */
     public function getFinesTotal($patron) {
         $fines = $this->getMyFines($patron);
-        $total = 0;
+        $total = 0.0;
         foreach ($fines as $fee) {
-            $total += (int) $fee['amount'];
+            $total += (float) $fee['amount'];
         }
         return $total / 100;
     }
-- 
GitLab