@ -27,7 +27,7 @@
[% IF payment_id && !Koha.Preference('FinePaymentAutoPopup') %]
<div class="dialog alert audio-alert-action">
Payment reci eved: <a target="_blank" href="/cgi-bin/koha/pos/printreceipt.pl?action=print&accountlines_id=[% payment_id | uri %]&collected=[% collected | uri %]&change=[% change | uri %]" class="btn btn-default btn-xs"><i class="fa fa-print"></i> Print receipt</a>
Payment recei ved: <a target="_blank" href="/cgi-bin/koha/pos/printreceipt.pl?action=print&accountlines_id=[% payment_id | uri %]&collected=[% collected | uri %]&change=[% change | uri %]" class="btn btn-default btn-xs"><i class="fa fa-print"></i> Print receipt</a>
</div>
[% END %]
@ -180,8 +180,8 @@
</div>
[% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %]
<!-- Automatic Print Reci ept -->
<a id="printReci ept" style="display: none" href="#"></a>
<!-- Automatic Print Recei pt -->
<a id="printRecei pt" style="display: none" href="#"></a>
[% END %]
[% MACRO jsinclude BLOCK %]
@ -395,11 +395,11 @@
});
[% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %]
$("#printReci ept").click(function() {
$("#printRecei pt").click(function() {
var win = window.open('/cgi-bin/koha/pos/printreceipt.pl?action=print&accountlines_id=[% payment_id | uri %]&collected=[% collected | uri %]&change=[% change | uri %]', '_blank');
win.focus();
});
$("#printReci ept").click();
$("#printRecei pt").click();
[% END %]
});
</script>