Documentation / @facturometro/validator / taxSchemeIsVatNorm
Function: taxSchemeIsVatNorm() ​
taxSchemeIsVatNorm(
category):boolean
Defined in: packages/validator/src/engine/selectors.ts:179
cac:TaxScheme/normalize-space(upper-case(cbc:ID)) = 'VAT', the tolerant comparison the VAT category rules use.
Parameters ​
category ​
WithTaxScheme | undefined
A tax category or party tax scheme, possibly absent.
Returns ​
boolean
true when the scheme id is VAT after whitespace normalization and upper-casing.
Example ​
ts
import { taxSchemeIsVatNorm } from '@facturometro/validator';
taxSchemeIsVatNorm({ taxScheme: { id: ' vat ' } }); // true