From dcb0460683764fc5f8ced7afefbfbab941f4408a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Sun, 9 Apr 2017 16:58:21 +0200 Subject: [PATCH] Bug 18405: Self checkout: Fix broken silent printing Fix broken 'silent printing' (without printer dialog) in self checkout. To reproduce: Set up silent printing to slip printers as described in: https://wiki.koha-community.org/wiki/Setting_up_slip_printer_to_print_silently Verify that it works for check-outs in staff client. Verify that it does not work in Self checkout. To test: Apply patch Verify that silent printing works on SCO Signed-off-by: Alex Buckley Signed-off-by: Nick Clemens --- koha-tmpl/opac-tmpl/bootstrap/en/includes/slip-print.inc | 10 ++++++++++ .../opac-tmpl/bootstrap/en/modules/sco/printslip.tt | 16 +++++++++------- 2 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/includes/slip-print.inc diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/slip-print.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/slip-print.inc new file mode 100644 index 0000000..689375b --- /dev/null +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/slip-print.inc @@ -0,0 +1,10 @@ + diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt index f9a6582..025bf53 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt @@ -1,3 +1,4 @@ +[% USE Koha %] [% INCLUDE 'doc-head-open.inc' %] [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha [% END %] › Self checkout › Print Receipt for [% borrowernumber %] @@ -6,15 +7,16 @@ [% IF stylesheet %] [% END %] - + + + + + +[% INCLUDE 'slip-print.inc' %] + - +
[% IF plain %]
-- 
2.1.4