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

Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

parents 33fe1849 37850b8f
No related branches found
No related tags found
No related merge requests found
...@@ -154,6 +154,8 @@ class Product extends CommonObject ...@@ -154,6 +154,8 @@ class Product extends CommonObject
var $oldcopy; var $oldcopy;
//note not visible on orders and invoices
var $note;
/** /**
* Constructor * Constructor
...@@ -546,7 +548,7 @@ class Product extends CommonObject ...@@ -546,7 +548,7 @@ class Product extends CommonObject
$this->ref = dol_string_nospecial(trim($this->ref)); $this->ref = dol_string_nospecial(trim($this->ref));
$this->libelle = trim($this->libelle); $this->libelle = trim($this->libelle);
$this->description = trim($this->description); $this->description = trim($this->description);
$this->note = (isset($this->note)? trim($this->note):"null"); $this->note = (isset($this->note) ? trim($this->note) : null);
$this->weight = price2num($this->weight); $this->weight = price2num($this->weight);
$this->weight_units = trim($this->weight_units); $this->weight_units = trim($this->weight_units);
$this->length = price2num($this->length); $this->length = price2num($this->length);
...@@ -614,7 +616,7 @@ class Product extends CommonObject ...@@ -614,7 +616,7 @@ class Product extends CommonObject
$sql.= ", url = " . ($this->url?"'".$this->db->escape($this->url)."'":'null'); $sql.= ", url = " . ($this->url?"'".$this->db->escape($this->url)."'":'null');
$sql.= ", customcode = '" . $this->db->escape($this->customcode) ."'"; $sql.= ", customcode = '" . $this->db->escape($this->customcode) ."'";
$sql.= ", fk_country = " . ($this->country_id > 0 ? $this->country_id : 'null'); $sql.= ", fk_country = " . ($this->country_id > 0 ? $this->country_id : 'null');
$sql.= ", note = '" . $this->db->escape($this->note) ."'"; $sql.= ", note = ".(isset($this->note) ? "'" .$this->db->escape($this->note)."'" : 'null');
$sql.= ", duration = '" . $this->duration_value . $this->duration_unit ."'"; $sql.= ", duration = '" . $this->duration_value . $this->duration_unit ."'";
$sql.= ", accountancy_code_buy = '" . $this->accountancy_code_buy."'"; $sql.= ", accountancy_code_buy = '" . $this->accountancy_code_buy."'";
$sql.= ", accountancy_code_sell= '" . $this->accountancy_code_sell."'"; $sql.= ", accountancy_code_sell= '" . $this->accountancy_code_sell."'";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment