From 6eb9b15bd98b1390750db4140b6602de8da655d6 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 23 May 2008 12:35:19 +0000 Subject: [PATCH] Fix: Suppression champ "price" obsolete --- htdocs/fourn/commande/dispatch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php index 9dbd3d8215f..34282d4720d 100644 --- a/htdocs/fourn/commande/dispatch.php +++ b/htdocs/fourn/commande/dispatch.php @@ -205,7 +205,7 @@ if ($id > 0) $db->free($resql); } - $sql = "SELECT l.ref,l.fk_product,l.description,(sum(l.price * l.qty) / sum(l.qty)) as price, sum(l.qty) as qty"; + $sql = "SELECT l.ref,l.fk_product,l.description, l.subprice, sum(l.qty) as qty"; $sql.= ", l.rowid"; $sql.= ", p.label"; $sql.= " FROM ".MAIN_DB_PREFIX."commande_fournisseurdet as l"; @@ -249,7 +249,7 @@ if ($id > 0) print ' - '.$objp->label; if ($objp->description) print '
'.nl2br($objp->description); print ''; - print ''; + print ''; print "\n"; print ''.$objp->qty.'';