Skip to content
Snippets Groups Projects
Commit 475d749a authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: phpcheckstyle

parent 557dcf9a
Branches
Tags
No related merge requests found
...@@ -543,10 +543,10 @@ class ProductFournisseur extends Product ...@@ -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 ...@@ -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")) ...@@ -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++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment