]> git.koha-community.org Git - koha.git/commit
Bug 24620: [19.11.x] Close existing transfer when hold set to waiting (squashed)
authorNick Clemens <nick@bywatersolutions.com>
Mon, 10 Feb 2020 18:18:45 +0000 (18:18 +0000)
committerJoy Nelson <joy@bywatersolutions.com>
Thu, 7 May 2020 16:20:50 +0000 (16:20 +0000)
commit88526da244ce7ce3ec69bd5c167e016f021b3f08
tree6be90ed31265e766d3909afb7413f6bd67db6ce1
parent8ed0d57c95f36cfb960a998dc5b2fda6cfa44ef4
Bug 24620: [19.11.x] Close existing transfer when hold set to waiting (squashed)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Bug 24620: Close existing transfers when setting item to waiting

This patch adds a clause in ModReserveAffect to check if there
are existing transfers and close them when setting a hold to waiting

To test:
 1 - Set AutomaticItemReturn to Do
 2 - Checkin an item from Library B at Library A
 3 - Confirm item is in transfer (check the details page)
 4 - Place a item level hold for pickup at library A
 5 - Checkin the item at Library A
 6 - Confirm the hold
 7 - View the details page
 8 - Note the item is in transit and waiting
 9 - Apply patch
10 - Delete hold and repeat
11 - Confirm that transfer is closed when hold marked waiting

Signed-off-by: Sally <sally.healey@cheshirewestandchester.gov.uk>
Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Bug 24620: Fix test, remove replaced code, use dt_from_string

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
C4/Reserves.pm
t/db_dependent/Circulation.t