Merge pull request #13435 from ptibogxiv/patch-316
FIX product get purchase prices
This commit is contained in:
commit
1c7ce31207
@ -796,11 +796,11 @@ class Products extends DolibarrApi
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$this->productsupplier->fetch($id, $ref);
|
$product_fourn = new ProductFournisseur($this->db);
|
||||||
$this->productsupplier->list_product_fournisseur_price($id, '', '', 0, 0);
|
$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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user