public virtual bool Init(int quantity, Ingredient_Stock details)
        {
            this.Quantity = quantity;
            if (details != null)
            {
                this.Details = details;
            }
            else
            {
                this.Details = new Ingredient_Stock();
            }

            return(true);
        }
Exemple #2
0
        public virtual bool Init(Ingredient_Stock stockDetails, int quantity)
        {
            if (stockDetails != null)
            {
                Details = stockDetails;
            }
            else
            {
                Details = new Ingredient_Stock();
            }

            Quantity = quantity;
            return(true);
        }
Exemple #3
0
 public StockOrderDetails(Ingredient_Stock stockDetails, int quantity)
 {
     Init(stockDetails, quantity);
 }
 public StockItem(int quantity, Ingredient_Stock details)
 {
     Init(quantity, details);
 }