Fixing style errors.

This commit is contained in:
stickler-ci 2021-09-27 08:10:49 +00:00
parent c7ff60866a
commit 526380a4b8
2 changed files with 4 additions and 5 deletions

View File

@ -945,7 +945,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
if ($action == 'consumeorproduce' && !GETPOSTISSET('qty-'.$line->id.'-'.$i)) {
$preselected = 0;
}
$disable = 'disabled';
if ( ($line->qty - $alreadyconsumed) > 0 )
$disable = '';
@ -972,7 +972,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print '<td>';
if ($tmpproduct->status_batch) {
$preselected = (GETPOSTISSET('batch-'.$line->id.'-'.$i) ? GETPOST('batch-'.$line->id.'-'.$i) : '');
print '<td>'.$formproduct->selectLotStock('', 'batch-'.$line->id.'-'.$i, '', 1, 0, $line->fk_product,'','','','','','',1).'</td>';
print '<td>'.$formproduct->selectLotStock('', 'batch-'.$line->id.'-'.$i, '', 1, 0, $line->fk_product, '', '', '', '', '', '', 1).'</td>';
//print '<input type="text" class="width50" name="batch-'.$line->id.'-'.$i.'" value="'.$preselected.'">';
}
print '</td>';

View File

@ -593,9 +593,8 @@ class FormProduct
if ( $use_baseval = 1 )
$out .= '<option value="'.$arraytypes['batch'].'"';
else
$out .= '<option value="'.$id.'"';
else $out .= '<option value="'.$id.'"';
if ($selected == $id || ($selected == 'ifone' && $nboflot == 1)) {
$out .= ' selected';
}