Don't create Mo Child if it's only a product line on BOM

This commit is contained in:
atm-lena 2022-02-21 10:13:25 +01:00
parent 0cbf374fa5
commit f177973efe

View File

@ -82,9 +82,13 @@ print '<td class="center">';
//print '<input id="cb'.$this->tpl['id'].'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$this->tpl['id'].'"'.($selected?' checked="checked"':'').'>';
print '</td>';
print '<td class="center">';
print '<input type="checkbox" name="bomlineid[]" value="'.$line->id.'">';
print '</td>';
if($tmpbom->id) {
print '<td class="center">';
print '<input type="checkbox" name="bomlineid[]" value="' . $line->id . '">';
print '</td>';
} else {
print '<td class="center">&nbsp;</td>';
}
print '</tr>'."\n";