diff --git a/lib/AlmaClient/AlmaClient.class.php b/lib/AlmaClient/AlmaClient.class.php index 9b0a89c..d1800cb 100644 --- a/lib/AlmaClient/AlmaClient.class.php +++ b/lib/AlmaClient/AlmaClient.class.php @@ -544,7 +544,9 @@ public function renew_loan($borr_card, $pin_code, $loan_ids) { // successful. Even if this is not the case any error in the current // renewal is irrelevant as the loan has previously been renewed so // don't report it as such. - if ($message == 'isRenewedToday' || $renewable == 'yes') { + // Also renewalIsDenied marked as 'no' is considered a successful + // renewal. + if ($message == 'isRenewedToday' || $renewable == 'yes' || ($message == 'renewalIsDenied' && $renewable == 'no')) { $reservations[$id] = TRUE; } elseif ($message == 'maxNofRenewals') {