fix: autoload-køretøjer måles i paller, ikke liter — en tom pallebil er ikke 'ingen vogn' (v1.12.8.0)
This commit is contained in:
@@ -429,6 +429,15 @@ check("O19 tipvogn tager bulk", input19b.products[1].isPallet, false)
|
||||
check("O19 bulk-mængde", input19b.products[1].sources[1].available, 150000)
|
||||
products[1] = {{fillType = SUGAR, name = "SUGAR", available = 5000, level = 5000, capacity = 180000, isPallet = false}}
|
||||
|
||||
-- O20: UAL-bil: AD's "kapacitet" er antal paller (læssede + 1) -> liter-kapacitet ukendt i planen
|
||||
local v20 = newVehicle("Dragon2", 100, 0, 1, true)
|
||||
v20.carriable = {}
|
||||
runs[v20] = outboundRun(21, {3}, {{fillType = "STRAW_BASKET", policy = "sell"}})
|
||||
local input20 = ADOutbound.buildPlanInput(adEnv, runs[v20], v20)
|
||||
check("O20 kapacitet ukendt for pallebil", input20.capacity, nil)
|
||||
check("O20 har autoload", input20.hasAutoload, true)
|
||||
check("O20 turen planlægges alligevel", ADOutboundPlanner.plan(input20) ~= nil, true)
|
||||
|
||||
-- O10: install wrapper: fejl i hook stopper ikke AD
|
||||
local calls = {}
|
||||
adEnv.LoadAtDestinationTask.update = function(self, dt) calls.update = (calls.update or 0) + 1 end
|
||||
|
||||
Reference in New Issue
Block a user