From 0b53d9e093c1ef567ba7f4cfdd0ad2f6fb80a2da Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 4 Apr 2005 15:41:07 +0000 Subject: [PATCH] =?UTF-8?q?Modif=20lecture=20du=20prix=20d'achat=20TODO=20?= =?UTF-8?q?:=20reviser=20la=20m=E9thode=20pour=20les=20lots=20multiples?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fourn/commande/fiche.php | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index e9a2f86ec4d..9d025e36700 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -436,9 +436,11 @@ if ($_GET["id"] > 0) if ($commande->statut == 0 && $user->rights->fournisseur->commande->creer) { $sql = "SELECT p.rowid,p.label,p.ref,p.price "; + $sql .=" , pf.price"; $sql .= " FROM ".MAIN_DB_PREFIX."product as p "; - $sql .= " , ".MAIN_DB_PREFIX."product_fournisseur as pf "; + $sql .= " , ".MAIN_DB_PREFIX."product_fournisseur_price as pf "; $sql .= " WHERE p.rowid = pf.fk_product AND pf.fk_soc = ".$commande->fourn_id; + $sql .= " AND quantity = 1"; $sql .= " ORDER BY p.ref "; if ( $db->query($sql) ) { @@ -471,18 +473,6 @@ if ($_GET["id"] > 0) print ''.$langs->trans("PriceU").''; print '  '."\n"; - /* - print "".''; - print ''; - print $html->select_tva("tva_tx",$conf->defaulttx); - print ''; - print ''; - print ' %'; - print ''; - - print ''; - */ - $var=!$var; print "".''; print '';