BR-DEX-14
XRechnung 2.1.0 · UBL
Original rule text
[BR-DEX-14] Die Währungsangabe von "Third party payment amount" BT-DEX-002 muss BT-5 ("Invoice currency code") entsprechen.
cbc:PaidAmount/@currencyID = parent::node()/cbc:DocumentCurrencyCodeWhat this rule requires
The rule applies to each cac:PrepaidPayment in an extended XRechnung. It requires that the currencyID attribute of the prepaid payment’s cbc:PaidAmount (the “Third party payment amount”, BT-DEX-002) is equal to the invoice-level cbc:DocumentCurrencyCode (BT-5, “Invoice currency code”). A document fails validation when a prepaid payment amount carries a currency code that does not match the invoice currency code.
How to fix
Set the currencyID on cbc:PaidAmount in every cac:PrepaidPayment to the exact same value as cbc:DocumentCurrencyCode (for example, if the invoice currency is EUR, the prepaid amount must also be EUR). If a different payment currency was intended, this profile does not permit it; change the document so the prepaid amount uses the invoice currency.
Guidance on this rule. The original text above is authoritative.