From 4314b5012c90048272f5a1737fc326635fe372cc 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 Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer --- 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 95e2d7d8f9..e6b09d236b 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 bee3fa196c..70833c3dce 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.39.5