Пример #1
0
 /// <summary>
 /// 結帳
 /// </summary>
 public void CheckOut()
 {
     Console.WriteLine($"【{Discount.GetMarketingProgramName()}】商品總金額: {Amount} 總付款金額: {Discount.Calculate(Amount)}");
 }
Пример #2
0
 public decimal ActualCost()
 {
     return((BillAmount - discount.Calculate(this))
            + extracharge.Calculate(this));
 }
 public decimal ActualCost()
 {
     return(BillAmount - _discount.Calculate(this) + _extraCharge.Calculate(this));
 }
 public virtual decimal TotalBill()
 {
     return(TotalPurchase + _tax.Calculate() - _discount.Calculate() + _delivery.Calculate());
 }