mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-25 18:23:21 +01:00
rcupration des conditions de rglement d'une commande
This commit is contained in:
@@ -683,6 +683,23 @@ class Commande
|
||||
$this->adresse_livraison_id = $obj->fk_adresse_livraison;
|
||||
|
||||
$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)
|
||||
$this->brouillon = 1;
|
||||
// exp pdf -----------
|
||||
|
||||
Reference in New Issue
Block a user