Esempio n. 1
0
        public decimal GetTaxExcludedSum(Order order)
        {
            var plainSum = order.GetTotal();
            var services = CalculateServices(Calculations.Where(x => !x.IncludeTax), plainSum);
            var tax      = TaxIncluded ? order.GetTotalTaxAmount(TaxIncluded, plainSum, services) : 0;

            return(plainSum - tax);
        }
Esempio n. 2
0
 public decimal GetTaxExcludedSum(Order order)
 {
     var tax = TaxIncluded ? order.GetTotalTaxAmount(TaxIncluded, GetPlainSum(), GetPreTaxServicesTotal()) : 0;
     return order.GetTotal() - tax;
 }
Esempio n. 3
0
        public decimal GetTaxExcludedSum(Order order)
        {
            var tax = TaxIncluded ? order.GetTotalTaxAmount(TaxIncluded, GetPlainSum(), GetPreTaxServicesTotal()) : 0;

            return(order.GetTotal() - tax);
        }
Esempio n. 4
0
 public decimal GetTaxExcludedSum(Order order)
 {
     var plainSum = order.GetTotal();
     var services = CalculateServices(Calculations.Where(x => !x.IncludeTax), plainSum);
     var tax = TaxIncluded ? order.GetTotalTaxAmount(TaxIncluded, plainSum, services) : 0;
     return plainSum - tax;
 }