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++; }