mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-24 10:21:32 +01:00
New: Can use variables into the free text on PDF (__TOTAL_TTC_, __TOTAL_VAT...)
This commit is contained in:
@@ -2767,7 +2767,7 @@ function make_substitutions($chaine,$substitutionarray)
|
||||
{
|
||||
foreach ($substitutionarray as $key => $value)
|
||||
{
|
||||
$chaine=ereg_replace($key,$value,$chaine);
|
||||
$chaine=ereg_replace("$key","$value",$chaine); // We must keep the " to work when value is 123.5 for example
|
||||
}
|
||||
return $chaine;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user