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:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user