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 <eldy@destailleur.fr>
This commit is contained in:
parent
a93e892bd2
commit
d82f9f4927
1 changed files with 3 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
* Copyright (C) 2021 Nicolas ZABOURI <info@inovea-conseil.com>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
* Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 202 Ferran Marcet <fmarcet@2byte.es>
|
||||
*
|
||||
* 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue