/// <summary> /// 結帳 /// </summary> public void CheckOut() { Console.WriteLine($"【{Discount.GetMarketingProgramName()}】商品總金額: {Amount} 總付款金額: {Discount.Calculate(Amount)}"); }
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()); }