récupération des conditions de règlement d'une commande
This commit is contained in:
parent
57325d29ec
commit
0577253139
@ -683,6 +683,23 @@ class Commande
|
|||||||
$this->adresse_livraison_id = $obj->fk_adresse_livraison;
|
$this->adresse_livraison_id = $obj->fk_adresse_livraison;
|
||||||
|
|
||||||
$this->db->free();
|
$this->db->free();
|
||||||
|
|
||||||
|
if ($this->cond_reglement_id)
|
||||||
|
{
|
||||||
|
$sql = "SELECT rowid, libelle, code";
|
||||||
|
$sql.= " FROM ".MAIN_DB_PREFIX."cond_reglement";
|
||||||
|
$sql.= " WHERE rowid = ".$this->cond_reglement_id;
|
||||||
|
|
||||||
|
$resqlcond = $this->db->query($sql);
|
||||||
|
|
||||||
|
if ($resqlcond)
|
||||||
|
{
|
||||||
|
$objc = $this->db->fetch_object($resqlcond);
|
||||||
|
$this->cond_reglement = $objc->libelle;
|
||||||
|
$this->cond_reglement_code = $objc->code;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->statut == 0)
|
if ($this->statut == 0)
|
||||||
$this->brouillon = 1;
|
$this->brouillon = 1;
|
||||||
// exp pdf -----------
|
// exp pdf -----------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user