From ae3878b38fee65a45ae3e8b4098218c8513016bf 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 --- 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 486b442fcd7..cc260a63540 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