Merge pull request #13435 from ptibogxiv/patch-316

FIX product get purchase prices
This commit is contained in:
Laurent Destailleur 2020-03-30 19:20:32 +02:00 committed by GitHub
commit 1c7ce31207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -796,11 +796,11 @@ class Products extends DolibarrApi
}
if ($result) {
$this->productsupplier->fetch($id, $ref);
$this->productsupplier->list_product_fournisseur_price($id, '', '', 0, 0);
$product_fourn = new ProductFournisseur($this->db);
$product_fourn_list = $product_fourn->list_product_fournisseur_price($this->product->id, '', '', 0, 0);
}
return $this->_cleanObjectDatas($this->productsupplier);
return $this->_cleanObjectDatas($product_fourn_list);
}
/**