https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42386

--- Comment #48 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 202386
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202386&action=edit
Bug 42386: Add Koha::Patron::Availability::Hold

Patron-level hold availability checks using the Koha::Result::Availability
pattern. All blocker keys use snake_case consistently.

Checks performed:
- Eligibility (no item context needed): expired, debt_limit, bad_address,
  card_lost, restricted, hold_limit (maxreserves syspref)
- Count limits (with item_type_id + library_id context):
  no_reserves_allowed, too_many_holds_for_this_record,
  too_many_reserves_today, too_many_reserves

Assisted-by: Sonnet 4.6 (Anthropic)

Test plan:
1. Apply patch
2. Run:
   $ ktd --shell
   k$ prove t/db_dependent/Koha/Patron/Availability/Hold.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: David Nind <[email protected]>
Signed-off-by: Martin Renvoize <[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/

Reply via email to