feat(marker): fanen Marker — tabel, detalje (plan/kørsel/riv/tving lager/marksiloer), markflåde, Start nu/Stop
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user