]> git.koha-community.org Git - koha.git/commit
Bug 20487: AddReturn should clear items.onloan for unissued items
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 28 Mar 2018 14:25:07 +0000 (16:25 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 22 Aug 2018 12:29:10 +0000 (12:29 +0000)
commita744a3e2026c52b9270ea248909f71f3744ff1a4
tree02867b5bf85ad2f81ddd97027fad43df7874d5b1
parent56c50a66169f956584050a8630a71cfa7d5984cb
Bug 20487: AddReturn should clear items.onloan for unissued items

If an item is no longer issued but somehow still has a date in the onloan
column, checking it in should clear that date.
Adding a ModItem call in the NotIssued section.

Test plan:
[1] Run t/db_dependent/Circulation.t
[2] Bonus: Checkout item, delete issue from table, checkin. Verify that
    items.onloan has been cleared.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Charles Farmer <charles.farmer@inLibro.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/Circulation.pm
t/db_dependent/Circulation.t