Fixing style errors.
This commit is contained in:
parent
6f77885686
commit
0e260c859b
@ -445,7 +445,7 @@ class Products extends DolibarrApi
|
|||||||
//'multiprices_default_vat_code'=>$this->product->multiprices_default_vat_code
|
//'multiprices_default_vat_code'=>$this->product->multiprices_default_vat_code
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get prices per customer for a product
|
* Get prices per customer for a product
|
||||||
*
|
*
|
||||||
@ -472,13 +472,13 @@ class Products extends DolibarrApi
|
|||||||
if (! $result ) {
|
if (! $result ) {
|
||||||
throw new RestException(404, 'Product not found');
|
throw new RestException(404, 'Product not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
require_once DOL_DOCUMENT_ROOT . '/product/class/productcustomerprice.class.php';
|
require_once DOL_DOCUMENT_ROOT . '/product/class/productcustomerprice.class.php';
|
||||||
$prodcustprice = new Productcustomerprice($this->db);
|
$prodcustprice = new Productcustomerprice($this->db);
|
||||||
$filter = array();
|
$filter = array();
|
||||||
$filter['t.fk_product'] .= $id;
|
$filter['t.fk_product'] .= $id;
|
||||||
if ($thirdparty_id) $filter['t.fk_soc'] .= $thirdparty_id;
|
if ($thirdparty_id) $filter['t.fk_soc'] .= $thirdparty_id;
|
||||||
$result = $prodcustprice->fetch_all('', '', 0, 0, $filter);
|
$result = $prodcustprice->fetch_all('', '', 0, 0, $filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user