https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42383
--- Comment #24 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 209557 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209557&action=edit Bug 42383: Add Koha::Checkin->cancel_transfer This patch adds a cancel_transfer() domain method to Koha::Checkin that cancels the associated transfer and clears the transfer_id. If UseRecalls is enabled and the item has a recall in transit, the recall transfer is also reverted. Throws Koha::Exceptions::MissingParameter if the checkin has no transfer_id. No fuzzy fallbacks. Test plan: 1. Apply patch 2. Run: $ ktd --shell k$ prove t/db_dependent/Koha/Checkin.t => SUCCESS: Tests pass 3. Tests cover: - cancel_transfer cancels the transfer (datecancelled set) - transfer_id cleared on the checkin - cancel_transfer without transfer_id (throws MissingParameter) 4. Sign off :-D Signed-off-by: Tomás Cohen Arazi <[email protected]> Signed-off-by: Brendan Lawlor <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
