コード例 #1
0
 public void StopProductTimer()
 {
     if (ProductTimerValue != null)
     {
         ProductTimerValue.Stop();
     }
 }
コード例 #2
0
        //Görünen fiyat
        public decimal GetVisiblePrice()
        {
            var result = Price + OrderTagValues.Where(x => x.AddTagPriceToOrderPrice).Sum(x => x.Price * x.Quantity);

            if (ProductTimerValue != null)
            {
                result = ProductTimerValue.GetPrice(result + GetOrderTagPrice());
            }
            return(result);
        }
コード例 #3
0
        //Vergi etkilememiş fiyat
        public decimal GetPrice()
        {
            var result = Price + OrderTagValues.Sum(x => x.Price * x.Quantity);

            if (ProductTimerValue != null)
            {
                result = ProductTimerValue.GetPrice(result);
            }
            return(result);
        }
コード例 #4
0
 public void UpdateProductTimer(ProductTimer timer)
 {
     if (timer != null)
     {
         ProductTimerValue = new ProductTimerValue
         {
             ProductTimerId = timer.Id,
             MinTime        = timer.MinTime,
             PriceType      = timer.PriceType,
             PriceDuration  = timer.PriceDuration,
             TimeRounding   = timer.TimeRounding,
         };
     }
 }
コード例 #5
0
        public decimal GetPlainPrice()
        {
            var result = Price;

            if (TaxIncluded)
            {
                result += TaxAmount;
            }
            if (ProductTimerValue != null)
            {
                result = ProductTimerValue.GetPrice(result);
            }
            return(result);
        }
コード例 #6
0
ファイル: Order.cs プロジェクト: DanielTuttos/sistemas-csharp
 public void UpdateProductTimer(ProductTimer timer)
 {
     if (timer != null)
     {
         ProductTimerValue = new ProductTimerValue
         {
             ProductTimerId = timer.Id,
             MinTime        = timer.MinTime,
             PriceType      = timer.PriceType,
             PriceDuration  = timer.PriceDuration,
             TimeRounding   = timer.TimeRounding,
         };
         if (timer.StartTime > 0)
         {
             var now = DateTime.Today;
             ProductTimerValue.Start = new DateTime(now.Year, now.Month, now.Day, timer.StartTime, 0, 0);
             ProductTimerValue.End   = ProductTimerValue.Start;
         }
     }
     else
     {
         ProductTimerValue = null;
     }
 }
コード例 #7
0
ファイル: Order.cs プロジェクト: Spanky81/SambaPOS-3
 public void UpdateProductTimer(ProductTimer timer)
 {
     if (timer != null)
     {
         ProductTimerValue = new ProductTimerValue
                                  {
                                      ProductTimerId = timer.Id,
                                      MinTime = timer.MinTime,
                                      PriceType = timer.PriceType,
                                      PriceDuration = timer.PriceDuration,
                                      TimeRounding = timer.TimeRounding,
                                  };
     }
 }
コード例 #8
0
ファイル: Order.cs プロジェクト: khriza/SambaPOS-3
 public void UpdateProductTimer(ProductTimer timer)
 {
     if (timer != null)
     {
         ProductTimerValue = new ProductTimerValue
                                 {
                                     ProductTimerId = timer.Id,
                                     MinTime = timer.MinTime,
                                     PriceType = timer.PriceType,
                                     PriceDuration = timer.PriceDuration,
                                     TimeRounding = timer.TimeRounding,
                                 };
         if (timer.StartTime > 0)
         {
             var now = DateTime.Today;
             ProductTimerValue.Start = new DateTime(now.Year, now.Month, now.Day, timer.StartTime, 0, 0);
             ProductTimerValue.End = ProductTimerValue.Start;
         }
     }
     else ProductTimerValue = null;
 }