[Koha-bugs] [Bug 33796] Holds Queue builder never looks at any but the least cost branch of the transport cost matrix

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 22 20:33:09 CEST 2023


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

--- Comment #1 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 151541
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=151541&action=edit
Bug 33796: Holds Queue builder should check more than just least cost branch
for TCM

If for some reason all the items from the least cost branch fail ( can't be
transferred, fail the hold policy, non-matching itemtype filter, etc ), Koha
does not check the next cheapest branch, but instead moves onto the "fall back
to basics" code. We should loop over all the branches from least costly to most
costly to find the least costly items that can be used.

Test Plan:
1) Set up TCM so it's cheapest to transport item from A to C than from
   B to C.
2) Place hold for record with items at A and B, for pick at C
3) Disable transfer from A to C
4) Build the holds queue
5) Note the B item was selected over other more costly items, but not
   the less costly A item ( which cannot be transferred ).

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list