Merge pull request #5114 from esprit-libre/develop

FIX When buy price not explicetly defined, it is return by defineBuyPrice function that return total price instead of unit price
This commit is contained in:
Laurent Destailleur 2016-04-29 19:40:29 +02:00
commit b17b30f5a2

View File

@ -4560,7 +4560,7 @@ abstract class CommonObject
$productFournisseur = new ProductFournisseur($this->db);
if (($result = $productFournisseur->find_min_price_product_fournisseur($fk_product)) > 0)
{
$buyPrice = $productFournisseur->fourn_price;
$buyPrice = $productFournisseur->fourn_unitprice;
}
else if ($result < 0)
{