Label
This commit is contained in:
parent
4ce7507518
commit
acf28e28af
@ -122,12 +122,12 @@ trait CommonIncoterm
|
|||||||
$this->fk_incoterms = $id_incoterm;
|
$this->fk_incoterms = $id_incoterm;
|
||||||
$this->location_incoterms = $location;
|
$this->location_incoterms = $location;
|
||||||
|
|
||||||
$sql = 'SELECT libelle FROM '.MAIN_DB_PREFIX.'c_incoterms WHERE rowid = '.(int) $this->fk_incoterms;
|
$sql = 'SELECT libelle as label_incotermsFROM '.MAIN_DB_PREFIX.'c_incoterms WHERE rowid = '.(int) $this->fk_incoterms;
|
||||||
$res = $this->db->query($sql);
|
$res = $this->db->query($sql);
|
||||||
if ($res)
|
if ($res)
|
||||||
{
|
{
|
||||||
$obj = $this->db->fetch_object($res);
|
$obj = $this->db->fetch_object($res);
|
||||||
$this->label_incoterms = $obj->libelle;
|
$this->label_incoterms = $obj->label_incoterms;
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user