public decimal CalcTotalTax(List <Product> prodList) { decimal totalTax = 0.0m; foreach (Product p in prodList) { totalTax += (p.TaxedCost - p.Price); } return(TaxHelper.Truncate(totalTax)); }
public decimal CalcTotalAmount(List <Product> prodList) { decimal totalAmount = 0.0m; foreach (Product p in prodList) { totalAmount += p.TaxedCost; } return(TaxHelper.Truncate(totalAmount)); }
public decimal CalcTotalProductCost(decimal price, decimal tax) { return(TaxHelper.Truncate(price + tax)); }