diff --git a/htdocs/takepos/receipt.php b/htdocs/takepos/receipt.php index 7e548d5e966..b393e095dad 100644 --- a/htdocs/takepos/receipt.php +++ b/htdocs/takepos/receipt.php @@ -7,6 +7,7 @@ * Copyright (C) 2021 Nicolas ZABOURI * Copyright (C) 2024 MDW * Copyright (C) 2024-2025 Frédéric France + * Copyright (C) 202 Ferran Marcet * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -156,6 +157,7 @@ $constFreeText = 'TAKEPOS_HEADER'.(empty($_SESSION['takeposterminal']) ? '0' : $ if (getDolGlobalString('TAKEPOS_HEADER') || getDolGlobalString($constFreeText)) { $newfreetext = ''; $substitutionarray = getCommonSubstitutionArray($langs); + complete_substitutions_array($substitutionarray, $langs, $object); if (getDolGlobalString('TAKEPOS_HEADER')) { $newfreetext .= make_substitutions(getDolGlobalString('TAKEPOS_HEADER'), $substitutionarray); } @@ -404,6 +406,7 @@ $constFreeText = 'TAKEPOS_FOOTER'.(empty($_SESSION['takeposterminal']) ? '0' : $ if (getDolGlobalString('TAKEPOS_FOOTER') || getDolGlobalString($constFreeText)) { $newfreetext = ''; $substitutionarray = getCommonSubstitutionArray($langs); + complete_substitutions_array($substitutionarray, $langs, $object); if (getDolGlobalString($constFreeText)) { $newfreetext .= make_substitutions(getDolGlobalString($constFreeText), $substitutionarray); }