コード例 #1
0
 public decimal GetPriceEach(PricingModelObject SelectedPricingModel)
 {
     if (SelectedPricingModel == null)
     {
         return(SellingPrice - (Discount / Quantity));
     }
     else
     {
         return(SelectedPricingModel.GetSalePrice(SellingPrice, WholeSalePrice + AdditionalOverhead, 0) - (Discount / Quantity));
     }
 }
コード例 #2
0
 public decimal GetPriceEach(PricingModelObject SelectedPricingModel)
 {
     if (SelectedPricingModel == null)
     {
         return SellingPrice - (Discount / Quantity);
     }
     else
     {
         return SelectedPricingModel.GetSalePrice(SellingPrice, WholeSalePrice + AdditionalOverhead, 0) - (Discount / Quantity);
     }
 }
コード例 #3
0
 public decimal GetTotalPrice(PricingModelObject SelectedPricingModel)
 {
     if (SelectedPricingModel == null)
     {
         return(SellingPrice * Quantity - Discount);
     }
     else
     {
         return(SelectedPricingModel.GetSalePrice(SellingPrice, WholeSalePrice + AdditionalOverhead, 0) * Quantity - Discount);
     }
 }
コード例 #4
0
 public decimal GetTotalPrice(PricingModelObject SelectedPricingModel)
 {
     if (SelectedPricingModel == null)
     {
         return SellingPrice *  Quantity - Discount;
     }
     else
     {
         return SelectedPricingModel.GetSalePrice(SellingPrice, WholeSalePrice + AdditionalOverhead, 0) * Quantity - Discount;
     }
 }