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:
commit
b17b30f5a2
@ -4560,7 +4560,7 @@ abstract class CommonObject
|
|||||||
$productFournisseur = new ProductFournisseur($this->db);
|
$productFournisseur = new ProductFournisseur($this->db);
|
||||||
if (($result = $productFournisseur->find_min_price_product_fournisseur($fk_product)) > 0)
|
if (($result = $productFournisseur->find_min_price_product_fournisseur($fk_product)) > 0)
|
||||||
{
|
{
|
||||||
$buyPrice = $productFournisseur->fourn_price;
|
$buyPrice = $productFournisseur->fourn_unitprice;
|
||||||
}
|
}
|
||||||
else if ($result < 0)
|
else if ($result < 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user