|
Lines 577-591
Link Here
|
| 577 |
[% INCLUDE 'format_price.inc' %] |
577 |
[% INCLUDE 'format_price.inc' %] |
| 578 |
[% INCLUDE 'str/members-menu.inc' %] |
578 |
[% INCLUDE 'str/members-menu.inc' %] |
| 579 |
[% Asset.js("js/members-menu.js") | $raw %] |
579 |
[% Asset.js("js/members-menu.js") | $raw %] |
|
|
580 |
<script> |
| 581 |
var table_settings = [% TablesSettings.GetTableSettings('members', 'fines', 'account-fines', 'json') | $raw %]; |
| 582 |
addPrefs({ |
| 583 |
FinePaymentAutoPopup: [% Koha.Preference('FinePaymentAutoPopup') ? 1 : 0 | html %], |
| 584 |
}); |
| 585 |
const change_given = "[% change_given | html %]"; |
| 586 |
const payment_id = "[% payment_id | html %]"; |
| 587 |
</script> |
| 588 |
|
| 580 |
<script> |
589 |
<script> |
| 581 |
$(document).ready(function() { |
590 |
$(document).ready(function() { |
| 582 |
[% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %] |
591 |
if (payment_id && prefs.FinePaymentAutoPopup){ |
| 583 |
window.open('/cgi-bin/koha/members/printfeercpt.pl?action=print&change_given=[% change_given | html %]&accountlines_id=[% payment_id | html %]', '_blank'); |
592 |
window.open(`/cgi-bin/koha/members/printfeercpt.pl?action=print&change_given=${change_given}&accountlines_id=${payment_id}`, '_blank'); |
| 584 |
[% END %] |
593 |
} |
| 585 |
|
594 |
|
| 586 |
var txtActivefilter = _("Filter paid transactions"); |
595 |
var txtActivefilter = _("Filter paid transactions"); |
| 587 |
var txtInactivefilter = _("Show all transactions"); |
596 |
var txtInactivefilter = _("Show all transactions"); |
| 588 |
var table_settings = [% TablesSettings.GetTableSettings('members', 'fines', 'account-fines', 'json') | $raw %]; |
|
|
| 589 |
var table_account_fines = $("#table_account_fines").kohaTable( |
597 |
var table_account_fines = $("#table_account_fines").kohaTable( |
| 590 |
{ |
598 |
{ |
| 591 |
pagingType: "full", |
599 |
pagingType: "full", |
| 592 |
- |
|
|