FIX product purchase prices

Fix get datas but don't fix cleandata :( @eldy
This commit is contained in:
ptibogxiv 2020-03-27 20:07:18 +01:00 committed by GitHub
parent 4207d94f53
commit cb7342d4c8
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);
}
/**