Пример #1
0
 public virtual void SetNewPrice(ProductPrice price)
 {
     this.ProductPrices.Add(price);
     this.EndCustomerPrice = price.EndCustomerDrugPrice;
     this.CostPrice        = price.CostPrice;
     this.SavingPercentage = price.CalculatePercentageSaving();
 }
Пример #2
0
        public virtual void UpdatePrice(decimal newEndCustomerPriceValue, decimal newCostPrice, DateTimeOffset startDate)
        {
            var price = ProductPrice.CreateNewPrice(this, newCostPrice, newEndCustomerPriceValue, startDate);

            SetNewPrice(price);
        }