dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-dev] Bug in ODT propal generation


From: Sébastien
Subject: [Dolibarr-dev] Bug in ODT propal generation
Date: Wed, 04 Sep 2013 14:58:57 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8

They are a problem with propal odt generation : the field object "object_total_ht" is always empty (0 value in odt)

in File commondocgenerator.class.php, function get_substitutionarray_propal, a bad value are used to fill "object_total_ht" in array.
$array_key.'_total_ht'=>price2num($object->total_ht2,2)
but total_ht2 var doesn"t exist. The correct value :
$array_key.'_total_ht'=>price2num($object->total_ht,2)

On GitHub : https://github.com/Dolibarr/dolibarr/blob/develop/htdocs/core/class/commondocgenerator.class.php#L250

Bug introduced on 2013/03/06 : https://github.com/Dolibarr/dolibarr/commit/fcd81e47eb35a52f3d87200af97e40680b08b864#htdocs/core/class/commondocgenerator.class.php



reply via email to

[Prev in Thread] Current Thread [Next in Thread]