diff --git a/htdocs/mrp/mo_production.php b/htdocs/mrp/mo_production.php index 789dfe604cc..facad2b719e 100644 --- a/htdocs/mrp/mo_production.php +++ b/htdocs/mrp/mo_production.php @@ -835,6 +835,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea print '
'; print ''; + print ''."\n"; print ''; // Product print ''; @@ -883,10 +884,6 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea } print ''; } - // Action - if ($permissiontodelete) { - print ''; - } // Split print ''; @@ -899,6 +896,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea print ''; } + // Action + if ($permissiontodelete) { + print ''; + } + print ''; if ($action == 'addconsumeline') { @@ -928,10 +930,6 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea if (isModEnabled('productbatch')) { print ''; } - // Action - if ($permissiontodelete) { - print ''; - } // Split print ''; // SplitAll @@ -940,6 +938,10 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea if ($object->status == Mo::STATUS_DRAFT) { print ''; } + // Action + if ($permissiontodelete) { + print ''; + } print ''; // Extrafields Line @@ -1059,6 +1061,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea } print ''; + // Cost price + if ($permissiontoupdatecost && getDolGlobalString('MRP_SHOW_COST_FOR_CONSUMPTION')) { + print ''; + } + // Qty consumed print ''; // Stock - print ''; } - print ''; - // Batch - /* - print ''; - */ - - // Action delete line - print ''; + } + // Split + SplitAll + Edit line + Delete + print ''; @@ -1097,9 +1104,10 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea $line->fetch_optionals(); $temps = $line->showOptionals($extrafields, 'edit', array(), '', '', 1, 'line'); if (!empty($temps)) { - print ''; + print ''; } } } else { @@ -1174,6 +1182,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea } print ' ' . price2num($alreadyconsumed, 'MS'); print ''; + // Warehouse and/or workstation print ''; + // Stock if (isModEnabled('stock')) { print ''; } + // Lot if (isModEnabled('productbatch')) { print ''; @@ -1239,17 +1250,20 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea } print ''; + // Extrafields Line if (!empty($extrafields)) { $line->fetch_optionals(); $temps = $line->showOptionals($extrafields, 'view', array(), '', '', 1, 'line'); if (!empty($temps)) { - print ''; + print ''; } } } + // Show detailed of already consumed with js code to collapse foreach ($arrayoflines as $line2) { print ''; @@ -1261,17 +1275,20 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea print dol_print_date($line2['date'], 'dayhour', 'tzuserrel'); print ''; - // Already consumed + // Qty print ''; - // Qty - print ''; + // Unit + print ''; // Cost price if ($permissiontoupdatecost && getDolGlobalString('MRP_SHOW_COST_FOR_CONSUMPTION')) { print ''; } + //Already consumed + print ''; + // Warehouse print ''; // Unit - if (getDolGlobalInt('PRODUCT_USE_UNITS')) { - print ''; - } + print ''; // Cost if ($permissiontoupdatecost && getDolGlobalString('MRP_SHOW_COST_FOR_CONSUMPTION')) {
'.$langs->trans("Product").'
'; print ' ' . price2num($alreadyconsumed, 'MS'); @@ -1069,23 +1076,23 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea print ''; - if ($tmpproduct->isStockManaged()) { - if ($tmpproduct->stock_reel < ($line->qty - $alreadyconsumed)) { - print img_warning($langs->trans('StockTooLow')).' '; + if (isModEnabled('stock')) { + print ''; + if ($tmpproduct->isStockManaged()) { + if ($tmpproduct->stock_reel < ($line->qty - $alreadyconsumed)) { + print img_warning($langs->trans('StockTooLow')).' '; + } + print ''. $tmpproduct->stock_reel .' '; } - print ''. $tmpproduct->stock_reel .' '; + print ''; - print ''; + // Lot - serial + if (isModEnabled('productbatch')) { + print ''; print ''; print ''; print '
'; + $colspan = 10; + print '
'; print $temps; - print '
'; if (getDolGlobalString('STOCK_CONSUMPTION_FROM_MANUFACTURING_WAREHOUSE') && $tmpwarehouse->id > 0) { @@ -1185,6 +1194,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea print $tmpworkstation->getNomUrl(1); } print ''; @@ -1207,6 +1217,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea } print '
'; + $colspan = 10; + print '
'; print $temps; - print '
'.$line2['qty'].''.$line2['qty'].''; if ($line2['fk_warehouse'] > 0) { @@ -1350,9 +1367,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea print '