FormatTaxNo(TaxNo: String, Pattern: String[, CountryCode: String]): String
Returns a formatted Tax Number given a valid tax number and valid Pattern string.
Currently only NZ IRD numbers are supported.
FormatTaxNo function syntax has these named arguments:
Parameter |
Description |
TaxNo |
Required. The tax number to be validated. |
Pattern |
Required. number of digits and desired separator for the formatted account number. Valid characters dot, dash, space and digits (1-9). Validity of the pattern is checked. e.g. "3-3-3". |
CountryCode |
Optional, defaults to Company Country Code if not specified. The country for the Tax Number. Currently only NZ supported other Country Codes will error. |
For example:
FormatTaxNo("56 748 393","3-3-3" "NZ")
Returns: "056-748-393"