feat(oversigt): Start/Stop alle flows + klik på flow hopper til redigering; palleskure viser paller af pladser (v1.20.0.0)
- ADRunsController.startAllRuns/stopAllRuns/hasActiveRuns (kørende flows røres ikke ved Start alle) - Oversigt: knapsæt Start alle / Stop alle / Nyt run, samlet status, klikbare rækker (hop via update) - Palleskur-statistik: kapacitet = (egne + ledige pladser) x indhold; 24/4000 paller 1 % i stedet for 600 % - Manualer da/en opdateret
This commit is contained in:
@@ -894,6 +894,7 @@ local function addEntry(entries, fillType, level, capacity, extra)
|
||||
local entry = newProduct(fillType, level, level, capacity, false)
|
||||
entry.isOutput = extra ~= nil and extra.isOutput or false
|
||||
entry.count = extra ~= nil and extra.count or nil
|
||||
entry.slots = extra ~= nil and extra.slots or nil
|
||||
table.insert(entries, entry)
|
||||
end
|
||||
|
||||
@@ -936,7 +937,10 @@ local function objectStorageEntries(placeable)
|
||||
local fillType, perObject = getObjectInfoContent(objectInfo)
|
||||
local count = objectInfo.numObjects or 0
|
||||
if fillType ~= nil and count > 0 then
|
||||
addEntry(entries, fillType, count * perObject, spec.capacity or 0, {count = count})
|
||||
-- spec.capacity er PLADSER (delt mellem alle varer); i liter: (egne + ledige) paller x indhold
|
||||
local free = ADSources.objectStorageFreeSlots(placeable)
|
||||
local slots = free ~= math.huge and count + free or nil -- skur uden grænse: ingen procent
|
||||
addEntry(entries, fillType, count * perObject, slots ~= nil and slots * perObject or 0, {count = count, slots = slots})
|
||||
end
|
||||
end
|
||||
return entries
|
||||
|
||||
Reference in New Issue
Block a user