All rules · pint-om · error
IBR-009-OM
Where a tax identifier is given, the tax scheme code that qualifies it must be provided too.
Reviewed
Why this rule exists
The scheme says what kind of identifier the number is. A VAT identification number labelled as something else will not be looked up as one, and the invoice is rejected downstream.
Why it usually happens
- Omitting cac:TaxScheme/cbc:ID
- Emitting a local scheme name rather than the coded value
How to fix it
Emit cac:TaxScheme/cbc:ID as 'VAT' from a constant, alongside every tax identifier.
<cac:PartyTaxScheme> <cbc:CompanyID>OM1100000000</cbc:CompanyID> <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme> </cac:PartyTaxScheme>
The official rule
Tax scheme code, must be provided in IBT-031-1 or BTOM-006-1 or IBT-048-1 or IBT-063-1 or IBT-095-1 or IBT-102-1 or IBT-118-1 or IBT-167 and shall be 'VAT'.
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
if (exists(ancestor::cac:TaxRepresentativeParty)) then (cac:TaxScheme/cbc:ID = 'VAT') else if (local-name() = 'TaxCategory') then (cac:TaxScheme/cbc:ID = 'VAT') else if ($isBuyer) then (count(../cac:PartyTaxScheme) = 1 and cac:TaxScheme/cbc:ID = 'VAT') else if ($isSupplier) then ( (cac:TaxScheme/cbc:ID = 'VAT' or ../cac:PartyTaxScheme/cac:TaxScheme/cbc:ID = 'VAT') and (if (cac:TaxScheme/cbc:ID = 'VAT') then count(../cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']) = 1 else true()) ) else (cac:TaxScheme/cbc:ID = 'VAT')
Applied to nodes matching cac:ClassifiedTaxCategory | cac:TaxCategory | cac:PartyTaxScheme
Rule-pack versions
| Rule-pack | Layer | Severity | Applies to |
|---|---|---|---|
| pint-om-1.0.1 | pint-om | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-om-1.0.0 | pint-om | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
Related rules
Check your own invoice
Paste your XML and see every rule that fires, not just this one. Free, no sign-up, and we never store the document.
Open the validator