Merge pull request #22268 from atm-gauthier/FIX/input_hidden_with_fk_product_of_line_on_mo_production

FIX : input hidden with fk_product of line on mo production can be usefull
This commit is contained in:
Laurent Destailleur 2022-09-20 00:58:54 +02:00 committed by GitHub
commit 22a0f69cf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1007,6 +1007,9 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
$disable = 'disabled';
}
// input hidden with fk_product of line
print '<input type="hidden" name="product-'.$line->id.'-'.$i.'" value="'.$line->fk_product.'">';
// Qty
print '<td class="right"><input type="text" class="width50 right" id="qtytoconsume-'.$line->id.'-'.$i.'" name="qty-'.$line->id.'-'.$i.'" value="'.$preselected.'" '.$disable.'></td>';