récupération de l'id de la société
This commit is contained in:
parent
820ee12861
commit
b821ee7cc7
@ -352,7 +352,7 @@ class Livraison
|
|||||||
global $langs;
|
global $langs;
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
$sql = 'SELECT a.rowid, a.label, a.nom, a.address,'.$this->db->pdate('a.datec').' as dc';
|
$sql = 'SELECT a.rowid, a.fk_societe, a.label, a.nom, a.address,'.$this->db->pdate('a.datec').' as dc';
|
||||||
$sql .= ','. $this->db->pdate('a.tms').' as date_update';
|
$sql .= ','. $this->db->pdate('a.tms').' as date_update';
|
||||||
$sql .= ', a.cp,a.ville, a.note, a.fk_departement, a.fk_pays';
|
$sql .= ', a.cp,a.ville, a.note, a.fk_departement, a.fk_pays';
|
||||||
$sql .= ', p.code as pays_code, p.libelle as pays';
|
$sql .= ', p.code as pays_code, p.libelle as pays';
|
||||||
@ -369,6 +369,7 @@ class Livraison
|
|||||||
$obj = $this->db->fetch_object($resql);
|
$obj = $this->db->fetch_object($resql);
|
||||||
|
|
||||||
$this->idl = $obj->rowid;
|
$this->idl = $obj->rowid;
|
||||||
|
$this->socid = $obj->fk_societe;
|
||||||
|
|
||||||
$this->date_update = $obj->date_update;
|
$this->date_update = $obj->date_update;
|
||||||
$this->date_creation = $obj->date_creation;
|
$this->date_creation = $obj->date_creation;
|
||||||
|
|||||||
@ -1614,7 +1614,7 @@ class Form
|
|||||||
require_once(DOL_DOCUMENT_ROOT ."/comm/adresse_livraison.class.php");
|
require_once(DOL_DOCUMENT_ROOT ."/comm/adresse_livraison.class.php");
|
||||||
$livraison=new Livraison($this->db);
|
$livraison=new Livraison($this->db);
|
||||||
$livraison->fetch_adresse($selected);
|
$livraison->fetch_adresse($selected);
|
||||||
print '<a href=/comm/adresse_livraison.php?socid='.$socid.'>'.$livraison->label.'</a>';
|
print '<a href=/comm/adresse_livraison.php?socid='.$livraison->socid.'>'.$livraison->label.'</a>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user