Bug 30045: (bug 29543 follow-up) Fix SCO print slip
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 8 Feb 2022 11:12:22 +0000 (12:12 +0100)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 21 Feb 2022 14:19:19 +0000 (14:19 +0000)
commit26cbc70d1981a1ee3d1c658a0b96fb504d65e177
treef66d49c269c4ae18f864f058f5c82b4bdf089e77
parent5a874b053de0026002bc402c36968e5b2e2b7ff0
Bug 30045: (bug 29543 follow-up) Fix SCO print slip

Certainly since bug 29543 and bug 29914.

We should do the same authentication check than sco-main.pl, and also
make sure to generate the checkout history only for the logged in patron
(the OPAC one, not staff member)

Test plan:
Use the different combinations of the SCO config (AutoSelfCheckAllowed,
SelfCheckoutByLogin and WebBasedSelfCheck) and confirm that this patch
fixes the SCO print slip feature.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 72fa33490b71d91658c32493c687b1c5a37dc1df)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt
opac/sco/printslip.pl