Bug 38486 - No block checkouts are still blocked by fines, checkouts, and blocked item types
Summary: No block checkouts are still blocked by fines, checkouts, and blocked item types
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: SIP2 (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal
Assignee: Kyle M Hall (khall)
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-19 15:44 UTC by Kyle M Hall (khall)
Modified: 2024-11-19 16:16 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 38486: Fix unit tests (2.78 KB, patch)
2024-11-19 16:16 UTC, Kyle M Hall (khall)
Details | Diff | Splinter Review
Bug 38486: For SIP allow noblock checkouts reguardless of normal patron checkout blocks (3.41 KB, patch)
2024-11-19 16:16 UTC, Kyle M Hall (khall)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle M Hall (khall) 2024-11-19 15:44:45 UTC
The purpose of no block checkouts in SIP is to indicate that the SIP machine has made an offline ( "store and forward" ) transaction. The patron already has the item. As such, the item must be checked out to the patron or the library risks losing the item do to lack of tracking. As such, no block checkouts should not be blocked under any circumstances.
Comment 1 Kyle M Hall (khall) 2024-11-19 16:16:42 UTC
Created attachment 174795 [details] [review]
Bug 38486: Fix unit tests
Comment 2 Kyle M Hall (khall) 2024-11-19 16:16:48 UTC
Created attachment 174796 [details] [review]
Bug 38486: For SIP allow noblock checkouts reguardless of normal patron checkout blocks

The purpose of no block checkouts in SIP is to indicate that the SIP machine has made an offline ( "store and forward" ) transaction.
The patron already has the item. As such, the item must be checked out to the patron or the library risks losing the item do to lack of tracking.
As such, no block checkouts should not be blocked under any circumstances.

The sub C4::SIP::ILS::Transaction::Checkout::do_checkout already honors this, but it is wrapped by
C4::SIP::ILS::checkout which has additional checks that do not.

Test Plan:
1) Apply the unit test patch
2) prove t/db_dependent/SIP/Transaction.t will fail
3) Apply the second patch
4) prove t/db_dependent/SIP/Transaction.t will pass!