static void DoItemsNeedToBeSentToKitchen(pcAmerica.DesktopPOS.API.Client.SalesService.Context context, long invoiceNumber)
{
SalesAPI api = new SalesAPI();
Invoice inv = api.GetInvoice(context, invoiceNumber);
int i = 0, count = 0;
for (i = 0; i <= inv.LineItems.Count - 1; i++)
{
if (inv.LineItems[i].SentToKitchen == false)
{
Console.WriteLine(String.Format("Line#{0} needs to be sent to the Kitchen", i + 1));
count++;
}
}
if (count == 0) { Console.WriteLine("No items need to be sent to the Kitchen"); }
}