Rules / IBR-126
All currencyID attributes must have the same value as the Invoice currency code, except for amounts expected to be in Tax accounting currency
All currencyID attributes must have the same value as the Invoice currency code (ibt-005), except for amounts expected to be in Tax accounting currency (ibt-006).
Fails when this is false
ancestor::cac:ItemPriceExtension or @currencyID = //cbc:DocumentCurrencyCodeThe schematron test, verbatim. Context: cbc:Amount | cbc:BaseAmount | cbc:PriceAmount | cbc:LineExtensionAmount | cbc:TaxExclusiveAmount | cbc:TaxInclusiveAmount | cbc:AllowanceTotalAmount | cbc:ChargeTotalAmount | cbc:PrepaidAmount | cbc:PayableRoundingAmount | cbc:PayableAmount | cac:TaxTotal[cbc:TaxAmount/@currencyID=/*/cbc:DocumentCurrencyCode]/cbc:TaxAmount | cac:TaxTotal[cbc:TaxAmount/@currencyID=/*/cbc:DocumentCurrencyCode]/cac:TaxSubtotal/cbc:TaxableAmount | cac:TaxTotal[cbc:TaxAmount/@currencyID=/*/cbc:DocumentCurrencyCode]/cac:TaxSubtotal/cbc:TaxAmount
Fix
Change the data so the condition below holds. It reads cac:ItemPriceExtension, cbc:DocumentCurrencyCode, @currencyID. Paste the invoice into the validator to see the exact element that fails.