Fix: problem with free product/service in the creation of an invoice from an estimate

This commit is contained in:
Regis Houssin
2009-06-05 08:51:50 +00:00
parent 4561574206
commit e3ef54340d
3 changed files with 14 additions and 4 deletions

View File

@@ -863,6 +863,7 @@ function dol_trunc($string,$size=40,$trunc='right',$stringencoding='')
global $conf;
if ($size==0) return $string;
if (dol_textishtml($string)) $string = dol_string_nohtmltag($string,1);
if (! defined('USE_SHORT_TITLE') || (defined('USE_SHORT_TITLE') && USE_SHORT_TITLE))
{
// We go always here