From e2f587dd80bc38e2c1801a171c5a5c782ff459ac Mon Sep 17 00:00:00 2001 From: Adnan RIHAN Date: Sat, 19 Aug 2023 12:25:40 +0200 Subject: [PATCH] Fix TakePOS receipt preview in admin Receipt preview in admin shows header and footer repeating themselves because in preview, `$constFreeText` equals `TAKEPOS_HEADER` (as there is no `$_SESSION['takeposterminal']` defined). --- htdocs/takepos/receipt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/takepos/receipt.php b/htdocs/takepos/receipt.php index d52df0987b2..f1dfa6f9fc2 100644 --- a/htdocs/takepos/receipt.php +++ b/htdocs/takepos/receipt.php @@ -111,7 +111,7 @@ if (!empty($hookmanager->resPrint)) {

global->TAKEPOS_HEADER) || getDolGlobalString($constFreeText)) { $newfreetext = ''; $substitutionarray = getCommonSubstitutionArray($langs); @@ -352,7 +352,7 @@ if (getDolGlobalString('TAKEPOS_PRINT_PAYMENT_METHOD')) {

global->TAKEPOS_FOOTER) || !empty($conf->global->{$constFreeText})) { $newfreetext = ''; $substitutionarray = getCommonSubstitutionArray($langs);