From 69a3c8f2cb76dfdbd7d59dddcc5b132b366b9df3 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 17 Jun 2025 22:36:43 +0000 Subject: [PATCH] Bug 40158: Multiply scotimeout x 1000 to restore old logic 1. Have SelfCheckReceiptPrompt on 2. Go to the self checkout module 3. Login and press 'Finish' 4. Click 'Print receipt and end session' 5. No print dialogue 6. APPLY PATCH 7. Try again, it should behave as excepeted Signed-off-by: Christopher --- koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt index 2fa0a7925b..fce9495b0a 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt @@ -515,7 +515,7 @@ [% IF Koha.Preference('SelfCheckReceiptPrompt') %] var confirmStart = Date.now(); confirmModal("", _("Would you like to print a receipt?"), _("Print receipt and end session"), _("End session"), function(result) { - if ( result && (Date.now() - confirmStart) < [% Koha.Preference('SelfCheckTimeout') | html %] ) { + if ( result && (Date.now() - confirmStart) < ( [% Koha.Preference('SelfCheckTimeout') | html %] * 1000 ) ) { var win = window.open("/cgi-bin/koha/sco/printslip.pl?print=qslip"); location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout'; } else { -- 2.39.5