diff --git a/htdocs/mrp/mo_production.php b/htdocs/mrp/mo_production.php
index 6584c80cc37..28075a5c463 100644
--- a/htdocs/mrp/mo_production.php
+++ b/htdocs/mrp/mo_production.php
@@ -772,6 +772,13 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
if ($permissiontodelete) {
print '
| ';
}
+
+ // Split
+ print ' | ';
+
+ // SplitAll
+ print ' | ';
+
print '';
if ($action == 'addconsumeline') {
@@ -855,7 +862,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print '';
print '';
- print '';
+ print '
';
// Product
print ''.$tmpproduct->getNomUrl(1);
print ' '.$tmpproduct->label.'';
@@ -935,6 +942,13 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print '';
print ' | ';
}
+
+ // Split
+ print ' | ';
+
+ // Split All
+ print ' | ';
+
print '
';
// Show detailed of already consumed with js code to collapse
@@ -1052,7 +1066,12 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print $formproduct->selectLotDataList('batch-'.$line->id.'-'.$i, 0, $line->fk_product, '', '');
$type = 'batch';
+ print '';
print ' '.img_picto($langs->trans('AddStockLocationLine'), 'split.png', 'class="splitbutton" onClick="addDispatchLine('.((int) $line->id).', \''.dol_escape_js($type).'\', \'qtymissingconsume\')"');
+ print ' | ';
+ print '';
+ if (($action == 'consumeorproduce' || $action == 'consumeandproduceall') && $tmpproduct->status_batch == 2) print img_picto($langs->trans('SplitAllQuantity'), 'split.png', 'class="splitbutton splitallbutton field-error-icon" data-max-qty="1" onClick="addDispatchLine('.$line->id.', \'batch\', \'allmissingconsume\')"');
+ print ' | ';
}
print '';
}
@@ -1130,6 +1149,12 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print '';
if ($collapse || in_array($action, array('consumeorproduce', 'consumeandproduceall'))) {
print $langs->trans("Batch");
+
+ // Split
+ print ' | | ';
+
+ // Split All
+ print ' | ';
}
print '';
print ' | ';
@@ -1161,6 +1186,8 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
if ($permissiontodelete) {
print ' | ';
}
+
+
print '';
}
@@ -1293,6 +1320,12 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
print '';
print ' | ';
+
+ // Split
+ print ' | ';
+
+ // Split All
+ print ' | ';
}
print '';
}
@@ -1346,7 +1379,13 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print '';
if ($tmpproduct->status_batch) {
$type = 'batch';
+ print ' | ';
print img_picto($langs->trans('AddStockLocationLine'), 'split.png', 'class="splitbutton" onClick="addDispatchLine('.$line->id.', \''.$type.'\', \'qtymissing\')"');
+ print ' | ';
+
+ print '';
+ if (($action == 'consumeorproduce' || $action == 'consumeandproduceall') && $tmpproduct->status_batch == 2) print img_picto($langs->trans('SplitAllQuantity'), 'split.png', 'class="splitbutton splitallbutton field-error-icon" onClick="addDispatchLine('.$line->id.', \'batch\', \'alltoproduce\')"'); //
+ print ' | ';
}
print '';
}