Ajout mode_reglement et cond_reglement dans commande
This commit is contained in:
parent
4fb99ec62e
commit
7ba9b889e7
@ -529,7 +529,7 @@ class Commande
|
|||||||
*/
|
*/
|
||||||
function fetch($id)
|
function fetch($id)
|
||||||
{
|
{
|
||||||
$sql = 'SELECT c.rowid, c.date_creation, c.ref, c.fk_soc, c.fk_user_author, c.fk_statut, c.amount_ht, c.total_ht, c.total_ttc, c.tva';
|
$sql = 'SELECT c.rowid, c.date_creation, c.ref, c.fk_soc, c.fk_user_author, c.fk_statut, c.amount_ht, c.total_ht, c.total_ttc, c.tva, c.fk_cond_reglement, c.fk_mode_reglement';
|
||||||
$sql .= ', '.$this->db->pdate('c.date_commande').' as date_commande, c.fk_projet, c.remise_percent, c.source, c.facture, c.note, c.ref_client, c.model_pdf';
|
$sql .= ', '.$this->db->pdate('c.date_commande').' as date_commande, c.fk_projet, c.remise_percent, c.source, c.facture, c.note, c.ref_client, c.model_pdf';
|
||||||
$sql .= ' FROM '.MAIN_DB_PREFIX.'commande as c';
|
$sql .= ' FROM '.MAIN_DB_PREFIX.'commande as c';
|
||||||
$sql .= ' WHERE c.rowid = '.$id;
|
$sql .= ' WHERE c.rowid = '.$id;
|
||||||
@ -554,6 +554,8 @@ class Commande
|
|||||||
$this->note = $obj->note;
|
$this->note = $obj->note;
|
||||||
$this->projet_id = $obj->fk_projet;
|
$this->projet_id = $obj->fk_projet;
|
||||||
$this->modelpdf = $obj->model_pdf;
|
$this->modelpdf = $obj->model_pdf;
|
||||||
|
$this->cond_reglement_id = $obj->fk_cond_reglement;
|
||||||
|
$this->mode_reglement_id = $obj->fk_mode_reglement;
|
||||||
|
|
||||||
$this->db->free();
|
$this->db->free();
|
||||||
if ($this->statut == 0)
|
if ($this->statut == 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user