We should have an `in_transit` method available from the Koha::Item::Transfer object to allow checking the transit state of the item item.
Created attachment 110271 [details] [review] Bug 26481: Add Koha::Item::Transfer->in_transit method This method returns a boolean representing the in_transit state of the transfer. Test plan 1/ Run the included tests
Created attachment 110279 [details] [review] Bug 26481: Add Koha::Item::Transfer->in_transit method This method returns a boolean representing the in_transit state of the transfer. Test plan 1/ Run the included tests Signed-off-by: Kathleen Milne <kathleen.milne@cne-siar.gov.uk>
Tested in use by Kathleen as part of relying on bug 22569
Created attachment 110301 [details] [review] Bug 26481: Add Koha::Item::Transfer->in_transit method This method returns a boolean representing the in_transit state of the transfer. Test plan 1/ Run the included tests Signed-off-by: Kathleen Milne <kathleen.milne@cne-siar.gov.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
I'll stop here for now before getting even deeper into the rabbit hole - waiting for Martin to catch up.
Created attachment 110513 [details] [review] Bug 26481: Add Koha::Item::Transfer->in_transit method This method returns a boolean representing the in_transit state of the transfer. Test plan 1/ Run the included tests Signed-off-by: Kathleen Milne <kathleen.milne@cne-siar.gov.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 116553 [details] [review] Bug 26481: Add Koha::Item::Transfer->in_transit method This method returns a boolean representing the in_transit state of the transfer. Test plan 1/ Run the included tests 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>
Created attachment 117584 [details] [review] Bug 26481: Add Koha::Item::Transfer->in_transit method This method returns a boolean representing the in_transit state of the transfer. Test plan 1/ Run the included tests 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>
Pushed to master for 21.05, thanks to everybody involved!
Enhancement not pushed to 20.11.x