L'id de l'auteur de la facture fk_user_author n'était pas récupéré dans l'objet facture.

This commit is contained in:
Laurent Destailleur 2004-01-24 19:22:41 +00:00
parent 034d3c3bc7
commit 18b84d722e

View File

@ -220,8 +220,8 @@ class FactureFourn
{ {
$sql = "SELECT fk_soc,libelle,facnumber,amount,remise,".$this->db->pdate(datef)."as df"; $sql = "SELECT fk_soc,libelle,facnumber,amount,remise,".$this->db->pdate(datef)."as df";
$sql .= ", total_ht, total_tva, total_ttc"; $sql .= ", total_ht, total_tva, total_ttc, fk_user_author";
$sql .= " FROM llx_facture_fourn WHERE rowid=$rowid;"; $sql .= " FROM llx_facture_fourn as f WHERE f.rowid=$rowid;";
if ($this->db->query($sql) ) if ($this->db->query($sql) )
{ {
@ -240,7 +240,9 @@ class FactureFourn
$this->total_ht = $obj->total_ht; $this->total_ht = $obj->total_ht;
$this->total_tva = $obj->total_tva; $this->total_tva = $obj->total_tva;
$this->total_ttc = $obj->total_ttc; $this->total_ttc = $obj->total_ttc;
$this->author = $obj->fk_user_author;
$this->db->free(); $this->db->free();
/* /*