Esempio n. 1
0
        public decimal CalcTotalTax(List <Product> prodList)
        {
            decimal totalTax = 0.0m;

            foreach (Product p in prodList)
            {
                totalTax += (p.TaxedCost - p.Price);
            }

            return(TaxHelper.Truncate(totalTax));
        }
Esempio n. 2
0
        public decimal CalcTotalAmount(List <Product> prodList)
        {
            decimal totalAmount = 0.0m;

            foreach (Product p in prodList)
            {
                totalAmount += p.TaxedCost;
            }

            return(TaxHelper.Truncate(totalAmount));
        }
Esempio n. 3
0
 public decimal CalcTotalProductCost(decimal price, decimal tax)
 {
     return(TaxHelper.Truncate(price + tax));
 }