]> git.koha-community.org Git - koha.git/commit
Bug 25755: Add Koha::Item->request_transfer method
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 20 Jan 2020 15:11:53 +0000 (15:11 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 3 Mar 2021 14:36:12 +0000 (15:36 +0100)
commit33e1ec0ed02c5804502f84d8386a13b04c46fdd7
tree9c40b0f9f4d05734970bee0656746be66a3603d1
parentf1845ff19bff50e7932f8434c62ac0cbb26df60b
Bug 25755: Add Koha::Item->request_transfer method

This patch adds the request_transfer method to the Koha::Item object.
The new method requires `to` and `reason` parameters and will throw an
exception if an active transfer request is found on the item.

Test plan
1/ Run the included updated tests in t/db_dependent/Koha/Item.t
2/ Verify the tests pass
3/ Signoff

Signed-off-by: Kathleen Milne <kathleen.milne@cne-siar.gov.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Exceptions/Item/Transfer.pm [new file with mode: 0644]
Koha/Item.pm
t/db_dependent/Koha/Item.t