Esempio n. 1
0
        public static void testDisplayOrder(CloverConnector cloverConnector, TestConnectorListener connListener)
        {
            DisplayOrder order = DisplayFactory.createDisplayOrder();

            order.title               = "Get Ready!";
            order.note                = "Here is the note field";
            order.serviceChargeName   = "Gonna Getcha";
            order.serviceChargeAmount = "$2,123.34";

            DisplayLineItem lineItem = DisplayFactory.createDisplayLineItem();

            lineItem.name  = "My Item Name";
            lineItem.price = "$123.43";

            order.addDisplayLineItem(lineItem);

            DisplayDiscount discount = DisplayFactory.createDisplayDiscount();

            discount.amount = "$543.21";
            discount.name   = "Nice Guy discount";

            order.addDisplayDiscount(discount);

            cloverConnector.ShowDisplayOrder(order);

            DisplayLineItem line2 = DisplayFactory.createDisplayLineItem();

            line2.name      = "another item";
            line2.price     = "$4.68";
            line2.quantity  = "2";
            line2.unitPrice = "$2.34";
            order.addDisplayLineItem(line2);

            cloverConnector.ShowDisplayOrder(order);
        }
Esempio n. 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();
        }