Пример #1
0
        private void Sell()
        {
            int numberOfUnits = _consoleView.DisplayGetNumberOfUnitsToSell(_salesperson.CurrentStock);

            _salesperson.CurrentStock.SubtractProducts(numberOfUnits);

            if (_salesperson.CurrentStock.NumberOfUnits < 0)
            {
                _consoleView.DisplayBackorderMessage();
                _salesperson.OnBackorder = true;
            }
            else
            {
                return;
            }
        }