From 6c19deebff0444bbb0491b9f229307b0e9d54de4 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. --- 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 22aaa4e00f..87532de479 100644 --- a/Koha/Account/Line.pm +++ b/Koha/Account/Line.pm @@ -912,7 +912,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.20.1