Skip to content

Commit

Permalink
FIX : Avoid empty value to fk_multicurrency attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ATM-Nicolas committed Feb 27, 2018
1 parent 64dd643 commit 27100df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/commande/class/commande.class.php
Expand Up @@ -4034,7 +4034,7 @@ function insert($user=null, $notrigger=0)
$sql.= " ".(! empty($this->date_start)?"'".$this->db->idate($this->date_start)."'":"null").',';
$sql.= " ".(! empty($this->date_end)?"'".$this->db->idate($this->date_end)."'":"null").',';
$sql.= ' '.(!$this->fk_unit ? 'NULL' : $this->fk_unit);
$sql.= ", ".$this->fk_multicurrency;
$sql.= ", ".(! empty($this->fk_multicurrency) ? $this->fk_multicurrency : 'NULL');
$sql.= ", '".$this->db->escape($this->multicurrency_code)."'";
$sql.= ", ".$this->multicurrency_subprice;
$sql.= ", ".$this->multicurrency_total_ht;
Expand Down

0 comments on commit 27100df

Please sign in to comment.