//////////////// Sale methods ///////////// private void PayButton_Click(object sender, EventArgs e) { StoreItems.BringToFront(); StoreDiscounts.BringToFront(); PayButton.Enabled = false; StoreItems.Enabled = false; newOrderBtn.Enabled = false; SaleRequest request = new SaleRequest(); request.Amount = Store.CurrentOrder.Total; request.TipAmount = 0; if (cloverConnector.Sale(request) < 0) { PaymentReset(); } }
private void NewOrder() { Store.CreateOrder(); StoreItems.BringToFront(); StoreDiscounts.BringToFront(); DisplayOrder = DisplayFactory.createDisplayOrder(); DisplayOrder.title = Guid.NewGuid().ToString(); posLineItemToDisplayLineItem.Clear(); cloverConnector.ShowWelcomeScreen(); //cloverConnector.DisplayOrder(DisplayOrder); // want the welcome screen until something is added to the order PayButton.Enabled = true; StoreItems.Enabled = true; TabControl.Enabled = true; RegisterTabs.SelectedIndex = 0; UpdateUI(); }