Koha/C4/SIP/ILS/Transaction
Joonas Kylmälä 338ba1d769 Bug 25690: Remove duplicated logic in SIP2 checkouts
Because AllowItemsOnHoldCheckoutSIP only affects the checkoutability
of non-attached, i.e. RESERVED holds in SIP2 we can therefore use the
common code from CanBookBeIssued and ignore only the RESERVED confirmation
message case in SIP2 checkout code.

This slightly changes the checkout error message given for "In
processing" holds that someone other than the holdee tries to
checkout. Otherwise there is no logic changes. The message that this
changes is "Item is on hold for another patron." vs. now "Item cannot
be issued: $confirmation". It is easier to create follow-up patch to
properly add INPROCESSING confirmation to CanBookBeIssued and then
show correct message based on the CanBookBeIssued return value.

To test:
 1) Apply all patches from bug 25690 to get latest Transaction.t version
 2) prove t/db_dependent/SIP/Transaction.t => passes

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-03-04 16:18:42 +01:00
..
Checkin.pm Bug 24446: (QA follow-up) Set TransferTrigger to 'Reserve' for bug 24298 2021-03-03 15:36:13 +01:00
Checkout.pm Bug 25690: Remove duplicated logic in SIP2 checkouts 2021-03-04 16:18:42 +01:00
FeePayment.pm Bug 25095: Remove warn left in FeePayment.pm 2020-04-14 08:20:53 +01:00
Hold.pm Bug 23403: Fix whitespace 2020-05-15 09:48:27 +01:00
Renew.pm Bug 24083: Add support for unseen_renewals 2020-11-11 16:09:58 +01:00
RenewAll.pm Bug 15253: Rename syslog() to siplog() 2020-05-12 11:46:46 +01:00