Koha-clms/C4/SIP/ILS/Transaction
Colin Campbell d95e1ce857 Bug 12820: Handle rental fees in Sip issue and renew
Implement correct handling of fees associated with checking out
an item.
This is associated with fee acknowledged field (BO)

To quote from the Sip2 document
" If this field is N in a Checkout message and there is a fee
associated with checking out the item, the ACS should tell the
SC in the Checkout Response that there is a fee, and refuse to
check out the item. If the SC and the patron then interact and the
patron agrees to pay the fee, this field will be set to Y on a second
Checkout message, indicating to the ACS that the patron has acknowledged
the fee and checkout of the item should not be refused just
because there is a fee associated with the item"

So there are two Checkout requests the first with BO not set to Y is
rejected but the fee amount is returned. The Second Checkout with BO set
to Y should succeed.

Added a debug log message indicating why we block a checkout
when we dont otherwise indicate

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit fe179c737d)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>

Conflicts:
	C4/SIP/ILS.pm
2015-03-29 19:32:52 +13:00
..
Checkin.pm Bug 8769: (follow-up) remove unnecessary module import 2014-05-05 15:05:28 +00:00
Checkout.pm Bug 12820: Handle rental fees in Sip issue and renew 2015-03-29 19:32:52 +13:00
FeePayment.pm Bug 6273: add support for recording type of payment made via SIP2 2014-04-30 16:38:09 +00:00
Hold.pm Bug 9394: (follow-up) stylistic tidying 2013-07-24 05:04:57 +00:00
Renew.pm Bug 12820: Handle rental fees in Sip issue and renew 2015-03-29 19:32:52 +13:00
RenewAll.pm Bug 8429: Remove unnecessary use of Exporter from SIP/ILS 2012-11-30 17:50:10 -05:00