Fix bad null management
This commit is contained in:
parent
689354f927
commit
78ba1fe86e
@ -129,7 +129,7 @@ class MouvementStock extends CommonObject
|
||||
$sql.= " VALUES ('".$this->db->idate($now)."', ".$this->product_id.", ".$this->entrepot_id.", ".$this->qty.", ".$this->type.",";
|
||||
$sql.= " ".$user->id.",";
|
||||
$sql.= " '".$this->db->escape($label)."',";
|
||||
$sql.= " '".$this->db->escape($inventorycode)."',";
|
||||
$sql.= " ".($inventorycode?"'".$this->db->escape($inventorycode)."'":"null").",";
|
||||
$sql.= " '".price2num($price)."',";
|
||||
$sql.= " '".$fk_origin."',";
|
||||
$sql.= " '".$origintype."'";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user