Exemplo n.º 1
0
        public void StockOut(ItemWithCompany item)
        {
            int    itemId       = item.ItemId;
            Item   oldItem      = gateway.Search(itemId);
            double newAvailable = oldItem.Available - item.Quantity;

            gateway.StockOut(itemId, newAvailable);
        }