From 91b8fa8525b526eaa61eb192b9c3cba4c9a7ae4e Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Sun, 12 Nov 2023 21:34:51 +0000 Subject: [PATCH] Bug 33478: Apply formatting to RECEIPT To test: 1. Enable EnablePointOfSale and UseCashRegisters system preferences in Koha Administration -> Global system preferences 2. Go to Koha Administration -> Cash registers and add a new cash register 3. Go to Koha Administration -> Debit types and add a new debit type. Make sure you check the 'can be sold' option 4. Go to Point of sale 5. Select Add for your item under Items for purchase 6. Fill in Collect payment box and click Confirm 7. When payment is received, click Print receipt 8. Confirm your format settings for RECEIPT are applied --- koha-tmpl/intranet-tmpl/prog/en/modules/pos/printreceipt.tt | 2 +- pos/printreceipt.pl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/printreceipt.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/printreceipt.tt index 95e2d7d8f93..e6b09d236b5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/printreceipt.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/printreceipt.tt @@ -14,7 +14,7 @@ [% Asset.css("css/printreceiptinvoice.css") | $raw %] -[% IF slip.style %][% END %] +[% IF style %][% END %] [% INCLUDE 'blocking_errors.inc' %] diff --git a/pos/printreceipt.pl b/pos/printreceipt.pl index bee3fa196ca..70833c3dced 100755 --- a/pos/printreceipt.pl +++ b/pos/printreceipt.pl @@ -69,7 +69,8 @@ my $letter = C4::Letters::GetPreparedLetter( $template->param( slip => $letter->{content}, - plain => !$letter->{is_html} + plain => !$letter->{is_html}, + style => $letter->{style}, ); output_html_with_http_headers $input, $cookie, $template->output; -- 2.30.2