further optimised checkouts behaviour

This commit is contained in:
2023-01-11 15:29:37 +01:00
parent 3c18e7e360
commit 780f9a8c28
+3 -5
View File
@@ -168,12 +168,9 @@ namespace Caisses
{
NotFullCheckouts.Add(checkout);
}
}
}
foreach (GraphicalCheckout checkout in Checkouts)
{
if (checkout.Open && checkout.Clients.Count > 0)
//Checkout behaviour
if (checkout.Clients.Count > 0)
{
Client cClient = checkout.Clients[0];
if (cClient.State != Client.ClientState.Checkout)
@@ -192,6 +189,7 @@ namespace Caisses
}
}
}
}
public List<Bitmap> Draw()
{
ShelvesCorner = new Bitmap(ShelvesCorner.Width, ShelvesCorner.Height);