fix(status): valgt lager der ikke kan bruges viser den præcise grund i status (ikke 'intet lager med plads') (v1.19.10.0)

This commit is contained in:
2026-09-25 00:27:32 +02:00
parent 3111033805
commit d41e2776de
6 changed files with 14 additions and 3 deletions
+3
View File
@@ -103,6 +103,9 @@ local function reasonFor(product, e, input)
return product.name .. ": intet nåeligt salgssted"
end
if wantsStore(product.policy) and product.store == nil and (e.fullLoad or e.storageHigh) and not e.priceOk then
if product.storeReason ~= nil then
return product.name .. ": " .. product.storeReason
end
return product.name .. ": intet lager med plads (silo eller egen fabrik der bruger varen)"
end
local parts = {}