feat: regel 'Hent først når kilden er over X %' for salgsflows (v1.62.68)

This commit is contained in:
2026-10-07 23:24:55 +02:00
parent 31b8b19b9c
commit c5da46e876
11 changed files with 41 additions and 6 deletions
+2
View File
@@ -47,6 +47,7 @@ function ADRunsStorage.writeRecords(xmlFile, records)
xmlFile:setInt(key .. "#sellAt", record.sellAt or ADRuns.DEFAULT_SELL_AT_PERCENT)
xmlFile:setInt(key .. "#storeAbove", record.storeAbove or ADRuns.DEFAULT_STORE_ABOVE_PERCENT)
xmlFile:setInt(key .. "#sellAbove", record.sellAbove or 0)
xmlFile:setInt(key .. "#minSource", record.minSource or 0)
xmlFile:setInt(key .. "#collectRound", record.collectRound or 0)
-- maskinpulje: flowet stoppet + husket vogn pr. traktor
xmlFile:setInt(key .. "#stopped", record.stopped or 0)
@@ -81,6 +82,7 @@ function ADRunsStorage.readRecords(xmlFile)
sellAt = xmlFile:getInt(key .. "#sellAt"),
storeAbove = xmlFile:getInt(key .. "#storeAbove"),
sellAbove = xmlFile:getInt(key .. "#sellAbove"),
minSource = xmlFile:getInt(key .. "#minSource"),
collectRound = xmlFile:getInt(key .. "#collectRound"),
stopped = xmlFile:getInt(key .. "#stopped"),
sleeping = xmlFile:getInt(key .. "#sleeping"),