validateSTRN
function validateSTRN(strn): boolean;Defined in: tax.ts:81
Validates the format of a Sales Tax Registration Number (STRN): 13 digits, with optional spaces or dashes.
FBR does not publish a check-digit algorithm or the meaning of the digit groups, so this validates the format only.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
strn |
string |
STRN to validate |
Returns
Section titled “Returns”boolean
true if the format is valid