Bug 29474: Decouple renewal checks of auto-renewed issues from non-autorenewed
authorJoonas Kylmälä <joonas.kylmala@iki.fi>
Sun, 14 Nov 2021 12:05:16 +0000 (12:05 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 19 Jan 2022 07:15:04 +0000 (21:15 -1000)
commit6f7554754063518cc3399a45b2aaa72d520c8326
tree4a2c542820055c5980c1886c260829fcf399e404
parent6ceeafab7fc3a21c9986c08089cf51ba6bb7370a
Bug 29474: Decouple renewal checks of auto-renewed issues from non-autorenewed

The too_soon check does not relate at all to auto-renewed issues and
should be moved outside the _CanBookBeAutoRenewed() function.

To test:
   1) prove t/db_dependent/Circulation.t

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Circulation.pm