Esempio n. 1
0
 public void VoidSale()
 {
     SaleLineItem[] sliToDelete = SaleLineItems.ToArray();
     for (int i = 0; i < sliToDelete.Length; i++)
     {
         SaleLineItems.Remove(sliToDelete[i]);
     }
 }
Esempio n. 2
0
        public void CancelSaleLineItem(MenuProduct menuProduct)
        {
            SaleLineItem sli = SaleLineItems.Where(s => s.MenuProduct == menuProduct).FirstOrDefault();

            SaleLineItems.Remove(sli);
        }