NEW : Delete conf
This commit is contained in:
parent
6cd92ca829
commit
e282feb397
@ -45,8 +45,6 @@ print "<thead>\n";
|
||||
print '<tr class="liste_titre nodrag nodrop">';
|
||||
print '<a id="show_all" href="#">'.img_picto('', 'folder-open', 'class="paddingright"').$langs->trans("ExpandAll").'</a> ';
|
||||
print '<a id="hide_all" href="#">'.img_picto('', 'folder', 'class="paddingright"').$langs->trans("UndoExpandAll").'</a> ';
|
||||
$form = new Form($object->db);
|
||||
print $form->textwithpicto('', $langs->trans('CollapseBOMHelp'), 1, 'help', '');
|
||||
|
||||
// Adds a line numbering column
|
||||
if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
|
||||
|
||||
@ -81,7 +81,7 @@ $coldisplay++;
|
||||
$tmpproduct = new Product($object->db);
|
||||
$tmpproduct->fetch($line->fk_product);
|
||||
$tmpbom = new BOM($object->db);
|
||||
$tmpbom->fetch($line->fk_bom_child);
|
||||
$res = $tmpbom->fetch($line->fk_bom_child);
|
||||
if (!empty($tmpbom->id)){
|
||||
print '<a class="collapse_bom" id="collapse-'.$line->id.'" href="#">' . (empty($conf->global->BOM_SHOW_ALL_BOM_BY_DEFAULT) ? '(+)' : '(-)') . ' </a>';
|
||||
}
|
||||
@ -193,7 +193,11 @@ if ($resql){
|
||||
$sub_bom_line = new BOMLine($object->db);
|
||||
$sub_bom_line->fetch($obj->rowid);
|
||||
|
||||
print '<tr style="display:none" class="sub_bom_lines" parentid="'.$line->id.'">';
|
||||
if (empty($conf->global->BOM_SHOW_ALL_BOM_BY_DEFAULT)){
|
||||
print '<tr style="display:none" class="sub_bom_lines" parentid="'.$line->id.'">';
|
||||
} else {
|
||||
print '<tr class="sub_bom_lines" parentid="'.$line->id.'">';
|
||||
}
|
||||
|
||||
print '<td id="sub_bom_product_'.$sub_bom_line->id.'"> '.$sub_bom_product->getNomUrl(1).'</td>';
|
||||
if ($sub_bom_line->fk_bom_child > 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user