All rules · pint-om · error
IBR-034-OM
If the invoice currency is not Omani rial, the tax accounting currency must be stated, and it must be OMR.
Reviewed
Why this rule exists
Omani VAT is assessed and reported in rials. A foreign-currency invoice is permitted; foreign-currency tax accounting is not.
Why it usually happens
- Omitting TaxCurrencyCode entirely on foreign-currency invoices
- Setting TaxCurrencyCode to match the document currency out of apparent consistency
How to fix it
Set TaxCurrencyCode to OMR whenever DocumentCurrencyCode is anything else, and supply the exchange rate with it.
<cbc:DocumentCurrencyCode>USD</cbc:DocumentCurrencyCode> <cbc:TaxCurrencyCode>USD</cbc:TaxCurrencyCode>
<cbc:DocumentCurrencyCode>USD</cbc:DocumentCurrencyCode> <cbc:TaxCurrencyCode>OMR</cbc:TaxCurrencyCode>
The official rule
VAT accounting currency (IBT-006) must be provided if invoice currency code (IBT-005) is not equal to 'OMR'.
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
$invoiceCurrency = 'OMR' or ($taxCurrency != '')
Applied to nodes matching ubl:Invoice | cn:CreditNote
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