From d82f9f4927af343eecdf4dcb4b95d097e4f4ab00 Mon Sep 17 00:00:00 2001 From: Ferran Marcet Date: Sun, 8 Jun 2025 14:28:19 +0200 Subject: [PATCH] New: Add function to make substitutions on Takepos receipt (#34369) * New: Mail template for contacts * New: Mail template for contacts * New: Mail template for contacts * New: Andorra's Accounting Plan * New: Add function to make substitutions on Takepos receipt * New: Add function to make substitutions on Takepos receipt --------- Co-authored-by: Laurent Destailleur --- htdocs/takepos/receipt.php | 3 +++ 1 file changed, 3 insertions(+) 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); }