コード例 #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);
        }
コード例 #2
0
ファイル: Ticket.cs プロジェクト: BOBAHbI4/SambaPOS-3
 public decimal GetTaxExcludedSum(Order order)
 {
     var tax = TaxIncluded ? order.GetTotalTaxAmount(TaxIncluded, GetPlainSum(), GetPreTaxServicesTotal()) : 0;
     return order.GetTotal() - tax;
 }
コード例 #3
0
ファイル: Ticket.cs プロジェクト: mickytm/SambaPOS-3
        public decimal GetTaxExcludedSum(Order order)
        {
            var tax = TaxIncluded ? order.GetTotalTaxAmount(TaxIncluded, GetPlainSum(), GetPreTaxServicesTotal()) : 0;

            return(order.GetTotal() - tax);
        }
コード例 #4
0
ファイル: Ticket.cs プロジェクト: roniwahyu/SambaPOS-3
 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;
 }