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

How to fix it

Set TaxCurrencyCode to OMR whenever DocumentCurrencyCode is anything else, and supply the exchange rate with it.

Wrong
<cbc:DocumentCurrencyCode>USD</cbc:DocumentCurrencyCode>
<cbc:TaxCurrencyCode>USD</cbc:TaxCurrencyCode>
Right
<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-packLayerSeverityApplies to
pint-om-1.0.1pint-omerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-om-1.0.0pint-omerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice

Related rules

IBR-004-OM · IBR-066-OM

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