FIX : Update bom net needs table
This commit is contained in:
parent
a18b5a31e5
commit
ace11dbf98
@ -214,6 +214,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
print '<a id="hide_all" href="#">'.img_picto('', 'folder', 'class="paddingright"').$langs->trans("UndoExpandAll").'</a> ';
|
print '<a id="hide_all" href="#">'.img_picto('', 'folder', 'class="paddingright"').$langs->trans("UndoExpandAll").'</a> ';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
if($action == 'treeview') print '<td class="left">'.$langs->trans('ProducedBy').'</td>';
|
||||||
print '<td class="linecolqty right">'.$langs->trans('Quantity').'</td>';
|
print '<td class="linecolqty right">'.$langs->trans('Quantity').'</td>';
|
||||||
print '<td class="linecolstock right">'.$form->textwithpicto($langs->trans("PhysicalStock"), $text_stock_options, 1).'</td>';
|
print '<td class="linecolstock right">'.$form->textwithpicto($langs->trans("PhysicalStock"), $text_stock_options, 1).'</td>';
|
||||||
print '<td class="linecoltheoricalstock right">'.$form->textwithpicto($langs->trans("VirtualStock"), $langs->trans("VirtualStockDesc")).'</td>';
|
print '<td class="linecoltheoricalstock right">'.$form->textwithpicto($langs->trans("VirtualStock"), $langs->trans("VirtualStockDesc")).'</td>';
|
||||||
@ -226,13 +227,17 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
foreach ($TChildBom as $fk_bom => $TProduct) {
|
foreach ($TChildBom as $fk_bom => $TProduct) {
|
||||||
$repeatChar = ' ';
|
$repeatChar = ' ';
|
||||||
if (!empty($TProduct['bom'])) {
|
if (!empty($TProduct['bom'])) {
|
||||||
|
$prod = new Product($db);
|
||||||
|
$prod->fetch($TProduct['bom']->fk_product);
|
||||||
if ($TProduct['parentid'] != $object->id) print '<tr class="sub_bom_lines oddeven" parentid="'.$TProduct['parentid'].'">';
|
if ($TProduct['parentid'] != $object->id) print '<tr class="sub_bom_lines oddeven" parentid="'.$TProduct['parentid'].'">';
|
||||||
else print '<tr class="oddeven">';
|
else print '<tr class="oddeven">';
|
||||||
print '<td class="linecoldescription">'.str_repeat($repeatChar, $TProduct['level']).$TProduct['bom']->getNomUrl(1);
|
if($action == 'treeview') print '<td class="linecoldescription">'.str_repeat($repeatChar, $TProduct['level']).$prod->getNomUrl(1);
|
||||||
|
else print '<td class="linecoldescription">'.str_repeat($repeatChar, $TProduct['level']).$TProduct['bom']->getNomUrl(1);
|
||||||
print ' <a class="collapse_bom" id="collapse-'.$fk_bom.'" href="#">';
|
print ' <a class="collapse_bom" id="collapse-'.$fk_bom.'" href="#">';
|
||||||
print img_picto('', 'folder-open');
|
print img_picto('', 'folder-open');
|
||||||
print '</a>';
|
print '</a>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
if($action == 'treeview') print '<td class="left">'.$TProduct['bom']->getNomUrl(1).'</td>';
|
||||||
print '<td class="linecolqty right">'.$TProduct['qty'].'</td>';
|
print '<td class="linecolqty right">'.$TProduct['qty'].'</td>';
|
||||||
print '<td class="linecolstock right"></td>';
|
print '<td class="linecolstock right"></td>';
|
||||||
print '<td class="linecoltheoricalstock right"></td>';
|
print '<td class="linecoltheoricalstock right"></td>';
|
||||||
@ -247,6 +252,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
if ($fk_bom != $object->id) print '<tr class="sub_bom_lines oddeven" parentid="'.$fk_bom.'">';
|
if ($fk_bom != $object->id) print '<tr class="sub_bom_lines oddeven" parentid="'.$fk_bom.'">';
|
||||||
else print '<tr class="oddeven">';
|
else print '<tr class="oddeven">';
|
||||||
print '<td class="linecoldescription">'.str_repeat($repeatChar, $TInfos['level']).$prod->getNomUrl(1).'</td>';
|
print '<td class="linecoldescription">'.str_repeat($repeatChar, $TInfos['level']).$prod->getNomUrl(1).'</td>';
|
||||||
|
if($action == 'treeview') print '<td></td>';
|
||||||
print '<td class="linecolqty right">'.$TInfos['qty'].'</td>';
|
print '<td class="linecolqty right">'.$TInfos['qty'].'</td>';
|
||||||
print '<td class="linecolstock right">'.price2num($prod->stock_reel, 'MS').'</td>';
|
print '<td class="linecolstock right">'.price2num($prod->stock_reel, 'MS').'</td>';
|
||||||
print '<td class="linecoltheoricalstock right">'.$prod->stock_theorique.'</td>';
|
print '<td class="linecoltheoricalstock right">'.$prod->stock_theorique.'</td>';
|
||||||
|
|||||||
@ -118,3 +118,4 @@ BomCantAddChildBom=The nomenclature %s is already present in the tree leading to
|
|||||||
BOMNetNeeds = BOM Net Needs
|
BOMNetNeeds = BOM Net Needs
|
||||||
BOMProductsList=BOM's products
|
BOMProductsList=BOM's products
|
||||||
BOMServicesList=BOM's services
|
BOMServicesList=BOM's services
|
||||||
|
ProducedBy=Produced by
|
||||||
@ -119,3 +119,4 @@ BomCantAddChildBom=La nomenclature %s est déjà présente dans l'arbre menant
|
|||||||
BOMNetNeeds = Besoins nets
|
BOMNetNeeds = Besoins nets
|
||||||
BOMProductsList=Les produits de BOM
|
BOMProductsList=Les produits de BOM
|
||||||
BOMServicesList=Les services de BOM
|
BOMServicesList=Les services de BOM
|
||||||
|
ProducedBy=Produit par
|
||||||
Loading…
Reference in New Issue
Block a user