Bug 33010: Do not filter checkins with logged in patrons branch in printslip.pl
authorEmmi Takkinen <emmi.takkinen@koha-suomi.fi>
Mon, 20 Feb 2023 08:26:29 +0000 (10:26 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 18 May 2023 14:35:11 +0000 (11:35 -0300)
commitb5f8c526577714e964b7a081b30b0b482f7f3cc5
tree580fb837f915bf60fc0cbab77f2d0e06dbf339eb
parenta40bd8d05d5d0dc5e789788808f05ce1697e6226
Bug 33010: Do not filter checkins with logged in patrons branch in printslip.pl

If one tries to print checkin slip for checkins that
have been checked out from different branch, list
of checkins is empty. One has to change their branch
as checkout library to be able to print checkins.

This happens because we filter (or rather search) patrons
old checkouts with logged in patrons branch. This patch
removes this search so that checkout are filtered using
just filter_by_todays_checkins.

To test:
1. Checkout items for patron from branch A.
2. Switch to branch B and checkin items.
3. Print checkin slip.
=> Checkins list is empty.
4. Switch back to branch A.
5. Print checkin slip again.
=> Checkins are printed.
6. Apply this patch, restart services if needed.
7. Switch back to branch B and print checkin slip.
=> Checkins should now print.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
members/printslip.pl