Skip to content
Snippets Groups Projects
Commit 299db387 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: uniformize code

parent e514b560
No related branches found
No related tags found
No related merge requests found
...@@ -399,7 +399,7 @@ class Product extends CommonObject ...@@ -399,7 +399,7 @@ class Product extends CommonObject
$sql = "UPDATE ".MAIN_DB_PREFIX."product "; $sql = "UPDATE ".MAIN_DB_PREFIX."product ";
$sql .= " SET label = '" . addslashes($this->libelle) ."'"; $sql .= " SET label = '" . addslashes($this->libelle) ."'";
if ($this->ref) $sql .= ",ref = '" . $this->ref ."'"; $sql .= ",ref = '" . $this->ref ."'";
$sql .= ",tva_tx = " . $this->tva_tx; $sql .= ",tva_tx = " . $this->tva_tx;
$sql .= ",envente = " . $this->status; $sql .= ",envente = " . $this->status;
$sql .= ",finished = " . ($this->finished<0 ? "null" : $this->finished); $sql .= ",finished = " . ($this->finished<0 ? "null" : $this->finished);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment