Function getTotalDiscount of commonobject.class.php should always return a float for precission
This commit is contained in:
parent
acd4e8f747
commit
593db37423
@ -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";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user