示例#1
0
文件: Tax.cs 项目: kai-liki/Study
        public Tax(string code, decimal rate, TaxBasisType basistype, bool isPriceIncl, decimal factor, string formula, TaxCalculationContext context)
        {
            TaxCode = code;
            TaxRate = rate;
            TaxBasisType = basistype;
            IsPriceInclTax = isPriceIncl;
            Factor = factor;
            CalculationFormula = formula;

            context.Taxs[TaxCode] = this;
            Context = context;
            Calculation = this.CreateTaxBasisCalculation(TaxBasisType);
        }
示例#2
0
 public TaxBasisCalculation(Tax tax, TaxCalculationContext context)
 {
     Tax = tax;
     Context = context;
     CalculationStatus = Status.NotStart;
 }
示例#3
0
 public LineTaxBasisCalculation(Tax tax, TaxCalculationContext context)
     : base(tax, context)
 {
 }
示例#4
0
文件: Tax.cs 项目: kai-liki/Study
 public Tax(string code, decimal rate, TaxBasisType basistype, bool isPriceIncl, decimal factor, TaxCalculationContext context)
     : this(code, rate, basistype, isPriceIncl, factor, string.Empty, context)
 {
 }