示例#1
0
        //////////////// 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();
            }
        }
示例#2
0
        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();
        }