Bug 11014 - Slip Print Problem in Chrome
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / printinvoice.tt
index 8a19918..29e64da 100644 (file)
@@ -1,14 +1,10 @@
+[% USE Koha %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Print Receipt for [% cardnumber %]</title>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/printreceiptinvoice.css" />
-<script type="text/javascript">
-    function printThenClose() {
-        window.print();
-        window.close();
-    }
-</script>
+[% INCLUDE 'slip-print.inc' #printThenClose %]
 </head>
 <body id="printinvoice" class="pat" onload="printThenClose();">