feat(marker): fanen Marker — tabel, detalje (plan/kørsel/riv/tving lager/marksiloer), markflåde, Start nu/Stop

This commit is contained in:
2026-09-25 21:52:43 +02:00
parent 5c912c524e
commit 15e3488a04
10 changed files with 422 additions and 13 deletions
+8
View File
@@ -77,6 +77,14 @@ function ADFieldModel.shouldStart(field)
return field.stage == "ready" and (field.plan.mode == "auto" or field.startRequested == true)
end
-- Start nu fra menuen på en mark der ikke er nået 90 %: den behandles som klar.
function ADFieldModel.forceReady(field)
if field.stage == "idle" or field.stage == "done" then
return ADFieldModel.with(field, {stage = "ready"})
end
return field
end
function ADFieldModel.start(field)
local copy = copyField(field)
copy.stage = ADFieldModel.workStages(field.plan)[1]