Rules / IBR-153-AE
When the Tax accounting currency is set to AED and the invoice currency code differs from AED, the source currency must be designated as the invoice currency code, and the target currency must be specified as the Tax accounting currency, provided that the currency exchange rate is available
When the Tax accounting currency (IBT-006) is set to AED and the invoice currency code (IBT-005) differs from AED, the source currency must be designated as the invoice currency code (IBT-005), and the target currency must be specified as the Tax accounting currency (IBT-006), provided that the currency exchange rate (BTAE-04) is available.
Fails when this is false
not(cbc:TaxCurrencyCode = "AED" and cbc:DocumentCurrencyCode != "AED" and (not(cac:TaxExchangeRate/cbc:SourceCurrencyCode = cbc:DocumentCurrencyCode) or not(cac:TaxExchangeRate/cbc:TargetCurrencyCode = cbc:TaxCurrencyCode) or not(cac:TaxExchangeRate/cbc:CalculationRate)))The schematron test, verbatim. Context: /ubl:Invoice | /cn:CreditNote
Fix
Change the data so the condition below holds. It reads cac:TaxExchangeRate, cbc:CalculationRate, cbc:DocumentCurrencyCode, cbc:SourceCurrencyCode. Paste the invoice into the validator to see the exact element that fails.