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); } }
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 DetermineScottishTaxCode(); if (IsScotlandTax) { SanitisedTaxCode = SanitisedTaxCode.Substring(1); } }