Example #1
0
        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);
        }
Example #2
0
 public TaxBasisCalculation(Tax tax, TaxCalculationContext context)
 {
     Tax = tax;
     Context = context;
     CalculationStatus = Status.NotStart;
 }
 public LineTaxBasisCalculation(Tax tax, TaxCalculationContext context)
     : base(tax, context)
 {
 }
Example #4
0
 public Tax(string code, decimal rate, TaxBasisType basistype, bool isPriceIncl, decimal factor, TaxCalculationContext context)
     : this(code, rate, basistype, isPriceIncl, factor, string.Empty, context)
 {
 }