Don't create Mo Child if it's only a product line on BOM
This commit is contained in:
parent
0cbf374fa5
commit
f177973efe
@ -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 '<input id="cb'.$this->tpl['id'].'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$this->tpl['id'].'"'.($selected?' checked="checked"':'').'>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
|
if($tmpbom->id) {
|
||||||
print '<td class="center">';
|
print '<td class="center">';
|
||||||
print '<input type="checkbox" name="bomlineid[]" value="' . $line->id . '">';
|
print '<input type="checkbox" name="bomlineid[]" value="' . $line->id . '">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
} else {
|
||||||
|
print '<td class="center"> </td>';
|
||||||
|
}
|
||||||
|
|
||||||
print '</tr>'."\n";
|
print '</tr>'."\n";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user