qcstatus is not for this branch

This commit is contained in:
altairis-noe 2021-05-05 18:01:47 +02:00
parent b1a4031bde
commit 5be2bdd123
2 changed files with 3 additions and 8 deletions

View File

@ -115,12 +115,9 @@ if (!empty($conf->productbatch->enabled) &&
|| ($object->element == 'stock'))
) {
print '<tr>';
print '<td'.($object->element == 'stock' ? '' : ' class="fieldrequired"').'>'.$langs->trans("batch_number").'</td><td>';
print '<td'.($object->element == 'stock' ? '' : ' class="fieldrequired"').'>'.$langs->trans("batch_number").'</td><td colspan="3">';
print '<input type="text" name="batch_number" size="40" value="'.GETPOST("batch_number").'">';
print '</td>';
print '<td>'.$langs->trans("StatusChangeIfNeeded").'</td>';
$formproduct->load_cache_productbatch_qcstatus();
print '<td class="valuefield">'.$formproduct->selectProductbatchQcstatus($object->fk_qcstatus, 'fk_qcstatus').'</td></tr>';
print '</tr>';
print '<tr>';
if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {

View File

@ -89,10 +89,8 @@ if ($object->element == 'stock') {
print '<td class="fieldrequired">'.$langs->trans("WarehouseTarget").'</td><td>';
print img_picto('', 'stock').$formproduct->selectWarehouses(GETPOST('id_entrepot_destination'), 'id_entrepot_destination', 'warehouseopen,warehouseinternal', 1);
print '</td></tr>';
print '<tr><td class="fieldrequired">'.$langs->trans("NumberOfUnit").'</td><td><input type="text" name="nbpiece" size="10" value="'.dol_escape_htmltag(GETPOST("nbpiece")).'"></td>';
print '<td>'.$langs->trans("StatusChangeIfNeeded").'</td>';
$formproduct->load_cache_productbatch_qcstatus();
print '<td class="valuefield">'.$formproduct->selectProductbatchQcstatus('0','fk_qcstatus').'</td></tr>';
print '<tr><td class="fieldrequired">'.$langs->trans("NumberOfUnit").'</td><td colspan="3"><input type="text" name="nbpiece" size="10" value="'.dol_escape_htmltag(GETPOST("nbpiece")).'"></td>';
print '<td></tr>';
// Serial / Eat-by date
if (!empty($conf->productbatch->enabled) &&