Function getTotalDiscount of commonobject.class.php should always return a float for precission

This commit is contained in:
Marcos García 2013-01-10 13:53:46 +01:00
parent acd4e8f747
commit 593db37423

View File

@ -2255,11 +2255,11 @@ abstract class CommonObject
/**
* Function that returns the total amount HT of discounts applied for all lines.
*
* @return in 0 if no discount
* @return float
*/
function getTotalDiscount()
{
$total_discount=0;
$total_discount=0.00;
$sql = "SELECT subprice as pu_ht, qty, remise_percent, total_ht";
$sql.= " FROM ".MAIN_DB_PREFIX.$this->table_element."det";