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

_______________________________________________
Dolibarr-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à