@@ -29,7 +29,11 @@
|
||||
{
|
||||
this.Pallets = pallets.ToDictionary(x => x, x => x == this.PalletNr);
|
||||
|
||||
if (!this.Pallets.ContainsKey(this.PalletNr))
|
||||
if (this.PalletNr == 0)
|
||||
{
|
||||
this.PalletNr = this.Pallets.Keys.Last();
|
||||
}
|
||||
else if (!this.Pallets.ContainsKey(this.PalletNr))
|
||||
{
|
||||
this.Pallets[this.PalletNr] = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user