From 654a9cd21cce448446b87b95c6cf03c6949ccaa0 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 12 Oct 2003 18:41:41 +0000 Subject: [PATCH] Ajout valeur subprice dans le fetch des lignes et corrections lors de la creation --- htdocs/compta/facture/facture-rec.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/facture/facture-rec.class.php b/htdocs/compta/facture/facture-rec.class.php index 2a36c151757..b80e9a8ec74 100644 --- a/htdocs/compta/facture/facture-rec.class.php +++ b/htdocs/compta/facture/facture-rec.class.php @@ -95,7 +95,7 @@ class FactureRec $result_insert = $this->addline($this->id, $facsrc->lignes[$i]->desc, - $facsrc->lignes[$i]->price, + $facsrc->lignes[$i]->subprice, $facsrc->lignes[$i]->qty, $facsrc->lignes[$i]->tva_taux, $facsrc->lignes[$i]->produit_id, @@ -177,7 +177,7 @@ class FactureRec * Lignes */ - $sql = "SELECT l.fk_product,l.description, l.price, l.qty, l.rowid, l.tva_taux, l.remise_percent"; + $sql = "SELECT l.fk_product,l.description, l.subprice, l.price, l.qty, l.rowid, l.tva_taux, l.remise_percent"; $sql .= " FROM llx_facturedet_rec as l WHERE l.fk_facture = ".$this->id." ORDER BY l.rowid ASC"; $result = $this->db->query($sql); @@ -194,6 +194,7 @@ class FactureRec $faclig->desc = stripslashes($objp->description); $faclig->qty = $objp->qty; $faclig->price = $objp->price; + $faclig->subprice = $objp->subprice; $faclig->tva_taux = $objp->tva_taux; $faclig->remise_percent = $objp->remise_percent; $this->lignes[$i] = $faclig;