Exemple #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);
        }
Exemple #2
0
 public decimal GetTaxExcludedSum(Order order)
 {
     var tax = TaxIncluded ? order.GetTotalTaxAmount(TaxIncluded, GetPlainSum(), GetPreTaxServicesTotal()) : 0;
     return order.GetTotal() - tax;
 }
Exemple #3
0
        public decimal GetTaxExcludedSum(Order order)
        {
            var tax = TaxIncluded ? order.GetTotalTaxAmount(TaxIncluded, GetPlainSum(), GetPreTaxServicesTotal()) : 0;

            return(order.GetTotal() - tax);
        }
Exemple #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;
 }