Example #1
0
        /// <summary>
        /// Adds Inventory to a Location
        /// </summary>
        /// <remarks>
        /// This adds a new product that is formed, so a product that was not in the system beforehand
        /// </remarks>
        /// <param name="name">The Product name</param>
        /// <param name="description">The Product description</param>
        /// <param name="price">The Product price</param>
        /// <param name="orderLimit">The Product order limit</param>
        /// <param name="quantity">Amount to add</param>
        /// <returns>True if sucessful, false otherwise</returns>
        public bool AddLocationNewInventory(string name, string description, decimal price, int orderLimit, int quantity)
        {
            CreateProduct(name, description, price, orderLimit);
            var product = GetProduct(name);

            return(Locations.AddLocationInventory(CurrentLocation, product, quantity));
        }
Example #2
0
 /// <summary>
 /// Adds Inventory to a Location
 /// </summary>
 /// <param name="product">The Product</param>
 /// <param name="quantity">Amount to add</param>
 /// <returns>True if sucessful, false otherwise</returns>
 public bool AddLocationInventory(DatabaseModels.Product product, int quantity) => Locations.AddLocationInventory(CurrentLocation, product, quantity);
Example #3
0
 /// <summary>
 /// Adds inventory to a Location
 /// </summary>
 /// <param name="productId">The Product Id</param>
 /// <param name="quantity">Amount to add</param>
 /// <returns>True if sucessful, false otherwise</returns>
 public bool AddLocationInventory(int productId, int quantity) => Locations.AddLocationInventory(CurrentLocation, productId, quantity);