Bugzilla – Attachment 133811 Details for
Bug 30610
The 'Print receipt' button on cash management registers page fails on second datatables page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30610: Update on click binding for print receipt
Bug-30610-Update-on-click-binding-for-print-receip.patch (text/plain), 1.57 KB, created by
Martin Renvoize (ashimema)
on 2022-04-25 14:40:21 UTC
(
hide
)
Description:
Bug 30610: Update on click binding for print receipt
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-04-25 14:40:21 UTC
Size:
1.57 KB
patch
obsolete
>From 8ce09dfa05fe8f94a77099a4baaebea968befb8a Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 25 Apr 2022 15:37:33 +0100 >Subject: [PATCH] Bug 30610: Update on click binding for print receipt > >This patch updates the binding for the on click even of the print >receipt button so that subsequent pages in the datatable work with the >reciept printing button. > >Test plan >1) Enable cash management and process enough transactions to display > more than one page of transactions in the register details page. >2) Confirm the 'Print receipt' button works on the first page of > transactions >3) Confirm the 'Print receipt' button works on subsequent transactions > pages in the datatable. >4) Confirm the same for the past transactions table. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >index 662f51b29f..b5604d8f97 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >@@ -401,7 +401,7 @@ > $("#returned, #refund_type").focus(); > }); > >- $(".printReceipt").click(function() { >+ $("body").on('click', ".printReceipt", function() { > var accountlines_id = $(this).data('accountline'); > var win = window.open('/cgi-bin/koha/pos/printreceipt.pl?action=print&accountlines_id=' + accountlines_id, '_blank'); > win.focus(); >-- >2.20.1
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 30610
:
133811
|
133843
|
133875