Bug 26481

Summary: Add Koha::Item::Transfer->in_transit method
Product: Koha Reporter: Martin Renvoize (ashimema) <martin.renvoize>
Component: Architecture, internals, and plumbingAssignee: Martin Renvoize (ashimema) <martin.renvoize>
Status: CLOSED FIXED QA Contact: Joonas Kylmälä <joonas.kylmala>
Severity: enhancement    
Priority: P5 - low CC: fridolin.somers, testopia
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
This enhancement adds the `Koha::Item::Transfer->in_transit` helper method to quickly identify transfers that are in progress.
Version(s) released in:
21.05.00
Circulation function:
Bug Depends on: 25767    
Bug Blocks: 26057, 27993    
Attachments: Bug 26481: Add Koha::Item::Transfer->in_transit method
Bug 26481: Add Koha::Item::Transfer->in_transit method
Bug 26481: Add Koha::Item::Transfer->in_transit method
Bug 26481: Add Koha::Item::Transfer->in_transit method
Bug 26481: Add Koha::Item::Transfer->in_transit method
Bug 26481: Add Koha::Item::Transfer->in_transit method

Description Martin Renvoize (ashimema) 2020-09-17 14:43:11 UTC
We should have an `in_transit` method available from the Koha::Item::Transfer object to allow checking the transit state of the item item.
Comment 1 Martin Renvoize (ashimema) 2020-09-17 14:47:43 UTC
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
Comment 2 Martin Renvoize (ashimema) 2020-09-17 16:25:11 UTC
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>
Comment 3 Martin Renvoize (ashimema) 2020-09-17 16:25:32 UTC
Tested in use by Kathleen as part of relying on bug 22569
Comment 4 Katrin Fischer 2020-09-17 21:05:13 UTC
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>
Comment 5 Katrin Fischer 2020-09-17 21:06:07 UTC
I'll stop here for now before getting even deeper into the rabbit hole - waiting for Martin to catch up.
Comment 6 Katrin Fischer 2020-09-21 21:04:02 UTC
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>
Comment 7 Martin Renvoize (ashimema) 2021-02-09 11:05:51 UTC
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>
Comment 8 Jonathan Druart 2021-03-03 14:30:19 UTC
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>
Comment 9 Jonathan Druart 2021-03-03 14:36:57 UTC
Pushed to master for 21.05, thanks to everybody involved!
Comment 10 Fridolin Somers 2021-03-04 12:24:02 UTC
Enhancement not pushed to 20.11.x