Ajout case à cocher "Générer OF Enfant"

This commit is contained in:
atm-lena 2022-02-07 17:00:49 +01:00
parent f921c10e3a
commit 6a94a6ebac
2 changed files with 7 additions and 3 deletions

View File

@ -1331,9 +1331,9 @@ class Mo extends CommonObject
print '<td class="center">'.$form->textwithpicto($langs->trans("VirtualStock"), $langs->trans("VirtualStockDesc")).'</td>';
print '<td class="center">'.$langs->trans('QtyFrozen').'</td>';
print '<td class="center">'.$langs->trans('DisableStockChange').'</td>';
//print '<td class="right">'.$langs->trans('Efficiency').'</td>';
print '<td class="center">'.$langs->trans('MoChildGenerate').'</td>';
//print '<td class="center">'.$form->showCheckAddButtons('checkforselect', 1).'</td>';
print '<td class="center"></td>';
// print '<td class="center"></td>';
print '</tr>';
$i = 0;

View File

@ -78,6 +78,11 @@ if (!empty($selectedLines) && !in_array($this->tpl['id'], $selectedLines)) {
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="createofchildbom_'.$tmpproduct->id.'">';
print '</td>';
print '</tr>'."\n";
// Select of all the sub-BOM lines
@ -153,7 +158,6 @@ if ($resql) {
print '<td></td>';
print '<td></td>';
print '<td></td>';
}
}