diff --git a/htdocs/product/composition/fiche.php b/htdocs/product/composition/fiche.php index 55fc3373402..2b7a3f3b46a 100644 --- a/htdocs/product/composition/fiche.php +++ b/htdocs/product/composition/fiche.php @@ -4,6 +4,7 @@ * Copyright (C) 2005 Eric Seigne * Copyright (C) 2005-2010 Regis Houssin * Copyright (C) 2006 Andre Cianfarani + * Copyright (C) 2011 Juanjo Menent * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,7 +24,7 @@ * \file htdocs/product/composition/fiche.php * \ingroup product * \brief Page de la fiche produit - * \version $Id: fiche.php,v 1.9 2011/07/31 23:24:03 eldy Exp $ + * \version $Id: fiche.php,v 1.10 2011/08/10 10:00:48 simnandez Exp $ */ require("../../main.inc.php"); @@ -218,13 +219,14 @@ if ($id || $ref) $productstatic->id=$value['id']; $productstatic->type=$value['type']; $productstatic->ref=$value['fullpath']; + $productstatic->load_stock(); //var_dump($value); //print '
'.$productstatic->ref.'
'; //print $productstatic->getNomUrl(1).'
'; //print $value[0]; // This contains a tr line. print ''; - print ''.$productstatic->getNomUrl(1).' ('.$value['nb'].')'; - print ''; + print ''.$productstatic->getNomUrl(1).'   '; + print ''.$langs->trans("Stock").' : '.$productstatic->stock_reel.' ('.$value['nb'].')'; print ''; } print ''; @@ -279,13 +281,14 @@ if ($id || $ref) $productstatic->id=$value['id']; $productstatic->type=$value['type']; $productstatic->ref=$value['fullpath']; + $productstatic->load_stock(); //var_dump($value); //print '
'.$productstatic->ref.'
'; //print $productstatic->getNomUrl(1).'
'; //print $value[0]; // This contains a tr line. print ''; - print ''.$productstatic->getNomUrl(1).' ('.$value['nb'].')'; - print ''; + print ''.$productstatic->getNomUrl(1).'   '; + print ''.$langs->trans("Stock").' : '.$productstatic->stock_reel.' ('.$value['nb'].')'; print ''; } print ''; @@ -446,5 +449,5 @@ print "\n\n"; $db->close(); -llxFooter('$Date: 2011/07/31 23:24:03 $ - $Revision: 1.9 $'); +llxFooter('$Date: 2011/08/10 10:00:48 $ - $Revision: 1.10 $'); ?>