From 291f001e14f60d10e34b88d6f682c45014d38360 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Sun, 12 Nov 2023 21:32:13 +0000 Subject: [PATCH] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Print button next to your invoice 5. Confirm your format settings for ACCOUNT_DEBIT are applied Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt | 2 +- members/printinvoice.pl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt index 8a1a3f9505..4543234013 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt @@ -15,7 +15,7 @@ [% Asset.css("css/printreceiptinvoice.css") | $raw %] -[% IF slip.style %][% END %] +[% IF style %][% END %] [% INCLUDE 'blocking_errors.inc' %] diff --git a/members/printinvoice.pl b/members/printinvoice.pl index 7d591c44d2..9abf901710 100755 --- a/members/printinvoice.pl +++ b/members/printinvoice.pl @@ -83,6 +83,7 @@ $template->param( slip => $letter->{content}, plain => !$letter->{is_html}, patron => $patron, + style => $letter->{style}, ); output_html_with_http_headers $input, $cookie, $template->output; -- 2.39.5