Bug 29474: Return too_soon before checking renewals
authorNick Clemens <nick@bywatersolutions.com>
Sat, 13 Nov 2021 14:43:36 +0000 (14:43 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 19 Jan 2022 07:15:04 +0000 (21:15 -1000)
commit6ceeafab7fc3a21c9986c08089cf51ba6bb7370a
treead53694b593b61d109b7541c900bb8c78a669c09
parentdafdfe32325c8185f66bdcedbac12750572bb8e4
Bug 29474: Return too_soon before checking renewals

This patch allows us to avoid checking reserves when the issue is
too_soon and we are running the cron

Code is covered by existing tests

To test:
1 - prove -v t/db_dependent/Circulation.t

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Circulation.pm