From 1e23716f2cef44991e5ac1f29d30e77184e1f24b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 16 Apr 2021 12:07:49 +0200 Subject: [PATCH] Bug 25508: Add info about caller responsabilities We are removing the test on the existence of item and patron, callers must call renewable before. Signed-off-by: Jonathan Druart (cherry picked from commit 59f1dc09acfcf602bb2700eb4ee64ecc10f4d09b) Signed-off-by: Fridolin Somers (cherry picked from commit e0fe359ca7644368ed4e49ac20c6f4fca7047a08) Signed-off-by: Andrew Fuerste-Henry --- Koha/Account/Line.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm index 012c37242a..bed7c54d00 100644 --- a/Koha/Account/Line.pm +++ b/Koha/Account/Line.pm @@ -817,7 +817,8 @@ sub renewable { my $renew_result = $line->renew_item; Conditionally attempt to renew an item and return the outcome. This is -as a consequence of the fine on an item being fully paid off +as a consequence of the fine on an item being fully paid off. +Caller must call renewable before. =cut -- 2.39.5