LP1893968 SIP2 checkin-with-cancel / checkin API user/berick/lp1893968-sip-checkin-with-cancel
authorBill Erickson <berickxx@gmail.com>
Wed, 2 Sep 2020 16:56:34 +0000 (12:56 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 2 Sep 2020 19:19:45 +0000 (15:19 -0400)
commit3312743a75f699d09e5db141a5e21c2eeca9b873
tree7f6dd6da93e54fb7bc10ec631d277e48947f8f69
parent3c40650424ee9d7a5a79c288f617f39e8b6587fa
LP1893968 SIP2 checkin-with-cancel / checkin API

Adds new option to open-ils.circ.checkin API called
"revert_hold_fulfillment".  It behaves much like a No-Op checkin, with
the addition that if a hold was fulfilled by the checked out item for
the patron which circulated the item, the hold fulfillment is rolled
back and the item is put back on the holds shelf.

Teaches the SIP Checkin code to pass the 'revert_hold_fulfillment' flag
to its checkin call when the SIP 'cancel' value is set, i.e. the SIP
'BI' field contains a 'Y' value.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/perlmods/lib/OpenILS/SIP.pm
Open-ILS/src/perlmods/lib/OpenILS/SIP/Transaction/Checkin.pm