|
|
@@ -494,25 +494,27 @@ $param .= $hookmanager->resPrint;
|
|
|
|
|
|
// List of mass actions available
|
|
|
$warehouses = getWarehouses($db);
|
|
|
-if ($inventory_id !== '4') {
|
|
|
+/* if ($inventory_id !== '4') {
|
|
|
$arrayofmassactions = array(
|
|
|
'preout_' . $inventory_id => img_picto('', 'fa-biking', 'class="pictofixedwidth"') . $langs->trans("inoutsidestatus"),
|
|
|
'prewarehouse_' . $inventory_id => img_picto('', 'fa-warehouse', 'class="pictofixedwidth"') . $langs->trans("inwarehousestatus"),
|
|
|
'prefaulty_' . $inventory_id => img_picto('', 'fa-exclamation-triangle', 'class="pictofixedwidth"') . $langs->trans("infaultystatus"),
|
|
|
);
|
|
|
-} else {
|
|
|
+} else { */
|
|
|
$arrayofmassactions = array(
|
|
|
+ 'preout_' . $inventory_id => img_picto('', 'fa-biking', 'class="pictofixedwidth"') . $langs->trans("inoutsidestatus"),
|
|
|
+ 'prewarehouse_' . $inventory_id => img_picto('', 'fa-warehouse', 'class="pictofixedwidth"') . $langs->trans("inwarehousestatus"),
|
|
|
'prefaulty_' . $inventory_id => img_picto('', 'fa-exclamation-triangle', 'class="pictofixedwidth"') . $langs->trans("infaultystatus"),
|
|
|
'preservice_' . $inventory_id => img_picto('', 'fa-wrench', 'class="pictofixedwidth"') . $langs->trans("inservicestatus"),
|
|
|
);
|
|
|
-}
|
|
|
+//}
|
|
|
foreach ($warehouses as $wh) {
|
|
|
if ($wh['rowid'] !== $inventory_id) {
|
|
|
- if ($wh['rowid'] == 4) {
|
|
|
+ /*if ($wh['rowid'] == 4) {
|
|
|
$arrayofmassactions['towarehouse_' . $wh['rowid']] = img_picto('', 'fa-wrench', 'class="pictofixedwidth"') . $langs->trans("toservicestatus");
|
|
|
- } else {
|
|
|
+ } else {*/
|
|
|
$arrayofmassactions['towarehouse_' . $wh['rowid']] = img_picto('', 'fa-warehouse', 'class="pictofixedwidth"') . $wh['ref'] . ' ' . $langs->trans("towarehousestatus");
|
|
|
- }
|
|
|
+ //}
|
|
|
}
|
|
|
}
|
|
|
if ($permissiontodelete) {
|