diff --git a/htdocs/mrp/mo_production.php b/htdocs/mrp/mo_production.php index 9e0e76db326..49bafee23c3 100644 --- a/htdocs/mrp/mo_production.php +++ b/htdocs/mrp/mo_production.php @@ -937,6 +937,13 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea if (isModEnabled('productbatch')) { print '
| '.$langs->trans("Product").' | '; + // Qty print ''.$langs->trans("Qty").' | '; + // Cost price if ($permissiontoupdatecost) { if (empty($bomcostupdated)) { print ''.$form->textwithpicto($langs->trans("UnitCost"), $langs->trans("AmountUsedToUpdateWAP")).' | '; @@ -1147,16 +1162,59 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea print ''.$form->textwithpicto($langs->trans("ManufacturingPrice"), $langs->trans("AmountUsedToUpdateWAP")).' | '; } } + // Already produced print ''.$langs->trans("QtyAlreadyProduced").' | '; + // Warehouse print ''; if ($collapse || in_array($action, array('consumeorproduce', 'consumeandproduceall'))) { print $langs->trans("Warehouse"); } print ' | '; + + // Lot if (isModEnabled('productbatch')) { print ''; if ($collapse || in_array($action, array('consumeorproduce', 'consumeandproduceall'))) { print $langs->trans("Batch"); + } + print ' | '; + + // Split + print ''; + + // Split All + print ' | '; + } + + // Action delete + if ($permissiontodelete) { + print ' | '; + } + + print ' |
| '; + print $form->select_produits('', 'productidtoadd', '', 0, 0, -1, 2, '', 1, array(), 0, '1', 0, 'maxwidth300'); + print ' | '; + // Qty + print ''; + // Cost price + if ($permissiontoupdatecost) { + print ' | '; + } + // Action (cost price + already produced) + print ' | '; + print ''; + print ''; + print ' | '; + // Lot - serial + if (isModEnabled('productbatch')) { + print ''; // Split print ' | '; @@ -1164,33 +1222,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea // Split All print ' | '; } - print ''; - print ' | '; - } - print ' | ||
| '; - print $form->select_produits('', 'productidtoadd', '', 0, 0, -1, 2, '', 1, array(), 0, '1', 0, 'maxwidth300'); - print ' | '; - // Qty - print ''; - // Cost price - print ' | '; - - // Qty already produced - print ' | '; - // Warehouse - print ''; - print ''; - print ' | '; - // Lot - serial - if (isModEnabled('productbatch')) { - print ''; - } - // Action + // Action delete if ($permissiontodelete) { print ' | '; } @@ -1228,10 +1260,13 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea print ''; print ' | ||||
| '.$tmpproduct->getNomUrl(1);
print ' '.$tmpproduct->label.''; print ' | ';
+ // Qty
print ''.$line->qty.' | '; + // Cost price if ($permissiontoupdatecost) { // Defined $manufacturingcost $manufacturingcost = 0; @@ -1259,6 +1294,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea } print ''; } + // Already produced print ''; if ($alreadyproduced) { print ' | |||||||