Skip to content
Snippets Groups Projects
Commit 8ecde0ad authored by Dorian Merz's avatar Dorian Merz Committed by Frank Morgner
Browse files

refs #13879

* bugfix in \finc\ILS\Driver\FincILS::getFinesTotal
* changed datatype of total amount to float
* now adds up sum correctly
parent 45d06787
No related merge requests found
...@@ -1267,9 +1267,9 @@ class FincILS extends PAIA implements LoggerAwareInterface ...@@ -1267,9 +1267,9 @@ class FincILS extends PAIA implements LoggerAwareInterface
*/ */
public function getFinesTotal($patron) { public function getFinesTotal($patron) {
$fines = $this->getMyFines($patron); $fines = $this->getMyFines($patron);
$total = 0; $total = 0.0;
foreach ($fines as $fee) { foreach ($fines as $fee) {
$total += (int) $fee['amount']; $total += (float) $fee['amount'];
} }
return $total / 100; return $total / 100;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment