New: Can use variables into the free text on PDF (__TOTAL_TTC_, __TOTAL_VAT...)

This commit is contained in:
Laurent Destailleur
2009-08-25 13:37:29 +00:00
parent 9494f78336
commit a5c7178a3d
17 changed files with 136 additions and 95 deletions

View File

@@ -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;
}