Update mo_production.php
This commit is contained in:
parent
526380a4b8
commit
0ae0d13f8b
@ -946,9 +946,10 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
$preselected = 0;
|
$preselected = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$disable = 'disabled';
|
$disable = '';
|
||||||
if ( ($line->qty - $alreadyconsumed) > 0 )
|
if (!empty($conf->global->MRP_NEVER_CONSUME_MORE_THAN_EXPECTED) && ($line->qty - $alreadyconsumed) <= 0) {
|
||||||
$disable = '';
|
$disable = 'disabled';
|
||||||
|
}
|
||||||
|
|
||||||
print '<td class="right"><input type="text" class="width50 right" name="qty-'.$line->id.'-'.$i.'" value="'.$preselected.'" '.$disable.' ></td>';
|
print '<td class="right"><input type="text" class="width50 right" name="qty-'.$line->id.'-'.$i.'" value="'.$preselected.'" '.$disable.' ></td>';
|
||||||
if ($permissiontoupdatecost && !empty($conf->global->MRP_SHOW_COST_FOR_CONSUMPTION)) {
|
if ($permissiontoupdatecost && !empty($conf->global->MRP_SHOW_COST_FOR_CONSUMPTION)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user