Bug 12362: Cancel transfer with hold cancelation
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 22 Mar 2021 14:57:06 +0000 (14:57 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 23 Apr 2021 09:58:49 +0000 (11:58 +0200)
commit6c105829144cd341a4bc65ad8d0ee1f996b423d4
tree762a9c07f33a34eb55674747e447ae4248f351d4
parentd0407686eb070c5bdf0302147a198027abea5ac0
Bug 12362: Cancel transfer with hold cancelation

This patch adds a transfer cancellation when a hold is cancelled.

Test plan
1/ Check an item out from it's homebranch
2/ Place a hold on that item for another user at a different branch
3/ Check the item in at it's homebranch and accept the transfer
4/ Cancel the hold
5/ Change to the second branch and check the item in
6/ Note that a transfer is triggered with the reason 'Transfer was
cancelled whilst in transit'

Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
JD amended patch: remove trailing whitespace

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Hold.pm
Koha/Item/Transfer.pm
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt