Fix: phpcheckstyle
This commit is contained in:
parent
557dcf9a20
commit
475d749a97
@ -543,10 +543,10 @@ class ProductFournisseur extends Product
|
|||||||
/**
|
/**
|
||||||
* Sets the price expression
|
* Sets the price expression
|
||||||
*
|
*
|
||||||
* @param string $expression Expression
|
* @param string $expression_id Expression
|
||||||
* @return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function set_price_expression($expression_id)
|
function setPriceExpression($expression_id)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
@ -557,7 +557,7 @@ class ProductFournisseur extends Product
|
|||||||
$sql.= " SET fk_price_expression = ".$expression_id;
|
$sql.= " SET fk_price_expression = ".$expression_id;
|
||||||
$sql.= " WHERE rowid = ".$this->product_fourn_price_id;
|
$sql.= " WHERE rowid = ".$this->product_fourn_price_id;
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::set_price_expression", LOG_DEBUG);
|
dol_syslog(get_class($this)."::setPriceExpression", LOG_DEBUG);
|
||||||
|
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
|
|||||||
@ -196,7 +196,7 @@ if ($action == 'updateprice' && GETPOST('cancel') <> $langs->trans("Cancel"))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (! $error && ! empty($conf->dynamicprices->enabled)) {
|
if (! $error && ! empty($conf->dynamicprices->enabled)) {
|
||||||
$ret=$product->set_price_expression($price_expression);
|
$ret=$product->setPriceExpression($price_expression);
|
||||||
if ($ret < 0)
|
if ($ret < 0)
|
||||||
{
|
{
|
||||||
$error++;
|
$error++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user