PintLint

Rules / IBR-175-AE

IBR-175-AE error

Non-AED invoices need VAT totals in AED

When you bill in another currency and the tax currency is AED, the total VAT and the total with VAT must also be given in AED.

The FTA reconciles VAT in dirhams.

Fails

<cac:TaxTotal><cbc:TaxAmount currencyID="USD">50.00</cbc:TaxAmount>...</cac:TaxTotal>
<!-- no AED TaxTotal -->

Fix

Add a second cac:TaxTotal with cbc:TaxAmount in AED, converted at the stated rate.

Passes

<cac:TaxTotal><cbc:TaxAmount currencyID="AED">183.63</cbc:TaxAmount></cac:TaxTotal>
Schematron
Context
/ubl:Invoice | /cn:CreditNote
Test
cbc:DocumentCurrencyCode = "AED" or (cbc:DocumentCurrencyCode != "AED" and cbc:TaxCurrencyCode = "AED" and exists(cac:TaxTotal/cbc:TaxAmount[@currencyID = "AED"]) and exists(cac:AdditionalDocumentReference[cbc:DocumentTypeCode = "aedtotal-incl-vat"]/cbc:DocumentDescription))

Official text: When Invoice currency code [IBT-005] is other than 'AED' and Tax accounting currency [IBT-006] is 'AED', then the value in Invoice total VAT amount in tax accounting currency [IBT-111] and Invoice (or CreditNote) total amount with VAT in AED [BTAE-20] MUST be present.

Official · PINT AE (UAE) rules. Severity: error. Runs on UBL XML.

Check an invoice