From ef8158ad6ae80df7455cdc2c295d7d3e98c2a7e9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 3 Dec 2005 18:13:25 +0000 Subject: [PATCH] Lien utilisateur modifiant le prix clicable --- htdocs/product/price.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/htdocs/product/price.php b/htdocs/product/price.php index 23270f28d27..92594763075 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -222,7 +222,7 @@ if ($_GET["action"] == 'edit_price' && $user->rights->produit->creer) // Liste des evolutions du prix -$sql = "SELECT p.rowid, p.price, ".$db->pdate("p.date_price")." as dp, u.login"; +$sql = "SELECT p.rowid, p.price, ".$db->pdate("p.date_price")." as dp, u.rowid as user_id, u.login"; $sql .= " FROM ".MAIN_DB_PREFIX."product_price as p, llx_user as u"; $sql .= " WHERE fk_product = ".$product->id; $sql .= " AND p.fk_user_author = u.rowid "; @@ -265,10 +265,15 @@ if ($result) $objp = $db->fetch_object($result); $var=!$var; print ""; + + // Date print "".dolibarr_print_date($objp->dp,"%d %b %Y %H:%M:%S").""; + + // Prix print "".price($objp->price).""; - print "".$objp->login.""; + // User + print ''.img_object($langs->trans("ShowUser"),'user').' '.$objp->login.''; print "\n"; $i++; }