feat(lager): lagerture undgår markører andre udkørsels-forløb henter fra (Milk Store læsser af ved 'unload', ikke ved 'Load') (v1.17.5.0)

This commit is contained in:
2026-09-24 04:07:51 +02:00
parent c0f523700e
commit 73e886ee26
8 changed files with 82 additions and 13 deletions
+11
View File
@@ -136,6 +136,17 @@ function ADRunsController.unassignVehicle(vehicle)
end
end
-- Markører udkørsels-forløb HENTER fra: {[wayPointId] = true}. Lagerture læsser helst ikke af dér.
function ADRunsController.getPickupMarkers()
local result = {}
for _, run in ipairs(ADRunsController.store ~= nil and ADRunsController.store.runs or {}) do
if run.kind == "outbound" then
for _, wayPointId in ipairs(run.sourceWayPointIds or {}) do result[wayPointId] = true end
end
end
return result
end
-- ---- køretøjsnavne ----
ADRunsController.NAME_INTERVAL_MS = 2000