Allow SIP checkout to pre-empt unfilled holds.
authorJoe Atzberger (siptest <atz4sip@arwen.metavore.com>
Tue, 4 Nov 2008 20:34:53 +0000 (14:34 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Tue, 4 Nov 2008 20:40:38 +0000 (14:40 -0600)
commit72583589cafedbf9571a71a0a9eab009ec53b6a3
tree7bc04262c14fdcf817e983e67a39d1e9237baf85
parent8c2e5cc3aa5f81a071dcd62b2085c08080fa9fbe
Allow SIP checkout to pre-empt unfilled holds.

This affects transactions on items that may be covered by
a title or item-level hold, but have not yet been retrieved
from the stacks (i.e. "confirmed") by the librarian. This does
not affect waiting holds (found="W"), so they will still block
transaction unless they belong to the operating patron.

Also I cleanup any hold the patron has on a biblio/item when
they are allowed to checkout the item.
Here we are filling the hold because the checkout is allowed, regardless
of of the queue position.  This is different from AddIssue's CancelReserve, that
only fills the hold if it is next in line, but in the future AddIssue should
adopt a similar logic.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/SIP/ILS.pm
C4/SIP/ILS/Item.pm
C4/SIP/ILS/Patron.pm
C4/SIP/ILS/Transaction/Checkout.pm