Ejemplo n.º 1
0
        protected void SanitiseTaxCode(string taxCode)
        {
            SanitisedTaxCode = taxCode.ToUpperInvariant();

            // Do this here as it affects the sanitised tax code directly
            DetermineScottishTaxCode();
            if (IsScotlandTax)
            {
                SanitisedTaxCode = SanitisedTaxCode.Substring(1);
            }
        }
Ejemplo n.º 2
0
        protected void SanitiseTaxCode(string taxCode)
        {
            SanitisedTaxCode = taxCode.Trim();
            SanitisedTaxCode = SanitisedTaxCode.ToUpperInvariant();

            if (SanitisedTaxCode.Length == 0)
            {
                return;
            }

            // Do this here as it affects the sanitised tax code directly
            DetermineRegimeTaxCode();
            if (Regime != TaxRegime.rUK)
            {
                SanitisedTaxCode = SanitisedTaxCode.Substring(1);
            }
        }