further optimised checkouts behaviour
This commit is contained in:
+15
-17
@@ -168,26 +168,24 @@ namespace Caisses
|
||||
{
|
||||
NotFullCheckouts.Add(checkout);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach (GraphicalCheckout checkout in Checkouts)
|
||||
{
|
||||
if (checkout.Open && checkout.Clients.Count > 0)
|
||||
{
|
||||
Client cClient = checkout.Clients[0];
|
||||
if (cClient.State != Client.ClientState.Checkout)
|
||||
cClient.State = Client.ClientState.Checkout;
|
||||
|
||||
if (cClient.CheckoutTime <= 0)
|
||||
//Checkout behaviour
|
||||
if (checkout.Clients.Count > 0)
|
||||
{
|
||||
checkout.Clients.Remove(cClient);
|
||||
//We dont load the next because he should be loaded the next time this function is loaded
|
||||
}
|
||||
Client cClient = checkout.Clients[0];
|
||||
if (cClient.State != Client.ClientState.Checkout)
|
||||
cClient.State = Client.ClientState.Checkout;
|
||||
|
||||
foreach (GraphicalClient ccClient in checkout.Clients)
|
||||
{
|
||||
ccClient.Tick();
|
||||
if (cClient.CheckoutTime <= 0)
|
||||
{
|
||||
checkout.Clients.Remove(cClient);
|
||||
//We dont load the next because he should be loaded the next time this function is loaded
|
||||
}
|
||||
|
||||
foreach (GraphicalClient ccClient in checkout.Clients)
|
||||
{
|
||||
ccClient.Tick();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user