forked from Wavyzz/dolibarr
api supplier get purchase prices
This commit is contained in:
@@ -643,12 +643,11 @@ class Products extends DolibarrApi
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$this->product = new ProductFournisseur($this->db);
|
$this->productsupplier->fetch($id, $ref);
|
||||||
$this->product->fetch($id, $ref);
|
$this->productsupplier->list_product_fournisseur_price($id, '', '', 0, 0);
|
||||||
$this->product->list_product_fournisseur_price($id, '', '', 0, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->_cleanObjectDatas($this->product);
|
return $this->_cleanObjectDatas($this->productsupplier);
|
||||||
}
|
}
|
||||||
|
|
||||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
|
||||||
|
|||||||
Reference in New Issue
Block a user