From a0cc3703bfb15f3f94a6eb66cb58e257cd89cf81 Mon Sep 17 00:00:00 2001 From: =?utf8?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 Signed-off-by: Kyle M Hall --- .../bootstrap/en/includes/slip-print.inc | 10 ++++++++++ .../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 0000000000..689375b75b --- /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 f9a6582033..025bf53ead 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.39.5