Merge pull request #8556 from sadlig/develop

Fix value cond_reglement_id & mode_reglement_id
This commit is contained in:
Laurent Destailleur 2018-04-11 17:30:00 +02:00 committed by GitHub
commit e71ea882b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -838,8 +838,8 @@ class SupplierProposal extends CommonObject
$sql.= ", '".$this->db->escape($this->note_private)."'";
$sql.= ", '".$this->db->escape($this->note_public)."'";
$sql.= ", '".$this->db->escape($this->modelpdf)."'";
$sql.= ", ".$this->cond_reglement_id;
$sql.= ", ".$this->mode_reglement_id;
$sql.= ", ".($this->cond_reglement_id > 0 ? $this->cond_reglement_id : 'NULL');
$sql.= ", ".($this->mode_reglement_id > 0 ? $this->mode_reglement_id : 'NULL');
$sql.= ", ".($this->fk_account>0?$this->fk_account:'NULL');
$sql.= ", ".($this->date_livraison!=''?"'".$this->db->idate($this->date_livraison)."'":"null");
$sql.= ", ".($this->shipping_method_id>0?$this->shipping_method_id:'NULL');