Ajout du numéro de facture associée lors du fetch

This commit is contained in:
Rodolphe Quiedeville 2005-03-31 15:02:05 +00:00
parent 2381fd4fcb
commit 00e35391fd

View File

@ -37,7 +37,7 @@ class FactureTel {
*/ */
function fetch($id) function fetch($id)
{ {
$sql = "SELECT rowid, ligne, date, cout_vente, cout_vente_remise"; $sql = "SELECT rowid, ligne, date, cout_vente, cout_vente_remise, fk_facture";
$sql .= " FROM ".MAIN_DB_PREFIX."telephonie_facture as tf"; $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_facture as tf";
$sql .= " WHERE tf.rowid = ".$id; $sql .= " WHERE tf.rowid = ".$id;
@ -53,6 +53,7 @@ class FactureTel {
$this->ligne = $obj->ligne; $this->ligne = $obj->ligne;
$this->cout_vente = $obj->cout_vente; $this->cout_vente = $obj->cout_vente;
$this->cout_vente_remise = $obj->cout_vente_remise; $this->cout_vente_remise = $obj->cout_vente_remise;
$this->fk_facture = $obj->fk_facture;
$result = 0; $result = 0;
} }