From 2dc91dcd38055f738afb5465dae7da3c9dd05bea Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 4 Jun 2026 17:50:09 +0100 Subject: [PATCH] Bug 41705: (follow-up) Fix for new kohaTable requirements This bug sat in the queue too long and thus there's coding standard changes to resolve. Signed-off-by: Martin Renvoize --- .../intranet-tmpl/prog/en/modules/pos/pay.tt | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt index 129d877582..3ed39add99 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt @@ -518,17 +518,17 @@ .appendTo("#payForm"); }); - [% IF Koha.Preference('FinePaymentAutoPopup') %] - // Form submits to new tab; reset this page for the next transaction - setTimeout(function() { - sale_kohaTable.api().clear().draw(); - $('#tendered').val(''); - $('#paid').val(zero_formatted); - $('#change').html(zero_formatted); - $(':input[name="change"]').val(zero_formatted); - checked = false; - }, 0); - [% END %] + if (Koha.prefs.FinePaymentAutoPopup) { + // Form submits to new tab; reset this page for the next transaction + setTimeout(function () { + sale_kohaTable.api().clear().draw(); + $("#tendered").val(""); + $("#paid").val(zero_formatted); + $("#change").html(zero_formatted); + $(':input[name="change"]').val(zero_formatted); + checked = false; + }, 0); + } return true; }