From 0d940272bf0f4bbd6f40309e3580c32cf5fd7876 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 30 Apr 2026 17:30:31 +0100 Subject: [PATCH] Bug 41705: (follow-up) Hide receipt page buttons when printing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Print receipt and Close buttons added in the previous patch use class="no-print", but printreceiptinvoice.css had no @media print rule for that class — so they appeared in the printed output (e.g. when saving as PDF or auto-printing in browsers that block popups). Add a @media print rule so the buttons remain visible on screen but disappear from the printed receipt. Test plan: 1. Disable browser popups (Chrome: "Don't allow sites to send pop-ups or use redirects"). 2. Enable FinePaymentAutoPopup. 3. Complete a POS sale. 4. On the receipt page, choose Print to PDF (or trigger auto-print). 5. Verify the printed/PDF output contains only the receipt body — no Print receipt or Close buttons. 6. Verify the buttons remain visible on screen. Signed-off-by: Andrew Fuerste Henry Signed-off-by: Lucas Gass (cherry picked from commit 6b45fda621754487690e3b35ec8d6c103b1c5c8f) Signed-off-by: Baptiste Wojtkowski --- koha-tmpl/intranet-tmpl/prog/css/printreceiptinvoice.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/css/printreceiptinvoice.css b/koha-tmpl/intranet-tmpl/prog/css/printreceiptinvoice.css index ab9d2549e1..c04b2109b4 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/printreceiptinvoice.css +++ b/koha-tmpl/intranet-tmpl/prog/css/printreceiptinvoice.css @@ -341,3 +341,9 @@ fieldset { #cataloguing_additem_itemlist { overflow : visible !important; } + +@media print { + .no-print { + display: none; + } +}