Documentation / @facturometro/einvoice / taxSchemeIsVatExact
Function: taxSchemeIsVatExact() ​
taxSchemeIsVatExact(
category):boolean
Defined in: packages/validator/src/engine/selectors.ts:162
cac:TaxScheme/cbc:ID = 'VAT', the exact comparison: no whitespace or case tolerance.
Parameters ​
category ​
WithTaxScheme | undefined
A tax category or party tax scheme, possibly absent.
Returns ​
boolean
true when the scheme id is exactly VAT.
Example ​
ts
import { taxSchemeIsVatExact } from '@facturometro/validator';
taxSchemeIsVatExact({ taxScheme: { id: 'vat' } }); // false