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 <martin.renvoize@openfifth.co.uk>
This commit is contained in:
Martin Renvoize 2026-06-04 17:50:09 +01:00
parent 3ed47b65e8
commit 2dc91dcd38
No known key found for this signature in database
GPG Key ID: 2D86E0EAEC83711B
1 changed files with 11 additions and 11 deletions

View File

@ -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;
}