Quellcode durchsuchen

rollerstorage massecation fixes

szollosil vor 9 Monaten
Ursprung
Commit
9272cebfd8
1 geänderte Dateien mit 8 neuen und 6 gelöschten Zeilen
  1. 8 6
      custom/rollerstorage/rollerstorageinventoryindex.php

+ 8 - 6
custom/rollerstorage/rollerstorageinventoryindex.php

@@ -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) {