diff --git a/htdocs/bom/bom_net_needs.php b/htdocs/bom/bom_net_needs.php
index 4b2d5cdecab..b0e8b544cb0 100644
--- a/htdocs/bom/bom_net_needs.php
+++ b/htdocs/bom/bom_net_needs.php
@@ -30,7 +30,7 @@ require_once DOL_DOCUMENT_ROOT.'/bom/class/bom.class.php';
require_once DOL_DOCUMENT_ROOT.'/bom/lib/bom.lib.php';
// Load translation files required by the page
-$langs->loadLangs(array("mrp", "other"));
+$langs->loadLangs(array("mrp", "other", "stocks"));
// Get parameters
$id = GETPOST('id', 'int');
@@ -211,9 +211,9 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print ''.img_picto('', 'folder', 'class="paddingright"').$langs->trans("UndoExpandAll").' ';
}
print '';
- print '
'.$langs->trans('Quantity').' | ';
- print ''.$form->textwithpicto($langs->trans("PhysicalStock"), $text_stock_options, 1).' | ';
- print ''.$form->textwithpicto($langs->trans("VirtualStock"), $langs->trans("VirtualStockDesc")).' | ';
+ print ''.$langs->trans('Quantity').' | ';
+ print ''.$form->textwithpicto($langs->trans("PhysicalStock"), $text_stock_options, 1).' | ';
+ print ''.$form->textwithpicto($langs->trans("VirtualStock"), $langs->trans("VirtualStockDesc")).' | ';
print '';
if (! empty($TChildBom)) {
if ($action == 'treeview') {
@@ -227,9 +227,9 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print img_picto('', 'folder-open');
print '';
print '';
- print ''.$TProduct['qty'].' | ';
- print ' | ';
- print ' | ';
+ print ''.$TProduct['qty'].' | ';
+ print ' | ';
+ print ' | ';
print '';
}
if (! empty($TProduct['product'])) {
@@ -241,9 +241,9 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
if ($fk_bom != $object->id) print '';
else print '
';
print '| '.str_repeat($repeatChar, $TInfos['level']).$prod->getNomUrl(1).' | ';
- print ''.$TInfos['qty'].' | ';
- print ''.$prod->stock_reel.' | ';
- print ''.$prod->stock_theorique.' | ';
+ print ''.$TInfos['qty'].' | ';
+ print ''.price2num($prod->stock_reel, 'MS').' | ';
+ print ''.$prod->stock_theorique.' | ';
print '
';
}
}
@@ -256,9 +256,9 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
if (empty($prod->stock_reel)) $prod->stock_reel = 0;
print '';
print '| '.$prod->getNomUrl(1).' | ';
- print ''.$qty.' | ';
- print ''.$prod->stock_reel.' | ';
- print ''.$prod->stock_theorique.' | ';
+ print ''.$qty.' | ';
+ print ''.price2num($prod->stock_reel, 'MS').' | ';
+ print ''.$prod->stock_theorique.' | ';
print '
';
}
}