Bugzilla – Attachment 183314 Details for
Bug 40158
SCO receipt doesnt print when SelfCheckReceiptPrompt is on
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40158: Multiply scotimeout x 1000 to restore old logic
Bug-40158-Multiply-scotimeout-x-1000-to-restore-ol.patch (text/plain), 1.71 KB, created by
Biblibre Sandboxes
on 2025-06-17 23:21:43 UTC
(
hide
)
Description:
Bug 40158: Multiply scotimeout x 1000 to restore old logic
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2025-06-17 23:21:43 UTC
Size:
1.71 KB
patch
obsolete
>From 69a3c8f2cb76dfdbd7d59dddcc5b132b366b9df3 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >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 <cbrannon@cdalibrary.org> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40158
:
183313
|
183314
|
183315
|
183332
|
183347