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:
2026-09-25 21:03:30 +02:00
parent d41e2776de
commit cc35b157bd
14 changed files with 271 additions and 31 deletions
+5 -1
View File
@@ -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