2
0
forked from Wavyzz/dolibarr

Fix warning

This commit is contained in:
ldestailleur
2025-07-10 15:16:53 +02:00
parent 5b1f6cd6ce
commit 67494f497f

View File

@@ -9657,7 +9657,7 @@ abstract class CommonObject
* @param float $unitPrice Product unit price
* @param float $discountPercent Line discount percent
* @param int $fk_product Product id
* @return float|int<-1,-1> Return buy price if OK, integer <0 if KO
* @return float|int<-2,-1> Return buy price if OK, integer <0 if KO
*/
public function defineBuyPrice($unitPrice = 0.0, $discountPercent = 0.0, $fk_product = 0)
{
@@ -9710,7 +9710,7 @@ abstract class CommonObject
}
}
}
return $buyPrice;
return (float) $buyPrice;
}
/**