mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX product purchase prices
Fix get datas but don't fix cleandata :( @eldy
This commit is contained in:
parent
4207d94f53
commit
cb7342d4c8
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user