Update commonobject.class.php - defineBuyPrice() return type

This commit is contained in:
thibdrev
2024-01-24 21:04:02 +01:00
committed by GitHub
parent 82a5e78020
commit 3f7e51f448

View File

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