Name attribute is outside the payment means code · UBL-DT-18
- Severity · Warning
- Applies to · UBL
- Editorial review pending
The check flags the XML attribute name when it occurs outside cbc:PaymentMeansCode. On the payment means code, the attribute can carry the payment method in words.
As of
Who can correct it?
The invoicing software provider can correct the export.
How to fix it
- Look for the name attribute on XML elements other than cbc:PaymentMeansCode.
- Remove it from the reported location and keep the field value.
Rule text and source
Paraphrase · The test subtracts the count of name attributes on cbc:PaymentMeansCode from the total count of name attributes. The result must be zero.
Message to the sender
Hello,
rule UBL-DT-18 was triggered when checking electronic invoice {invoiceNumber}. An XML field outside the payment means code carries the name attribute. Could you check the export and send us a corrected file?
Kind regardsExample
The currency code EUR carries name="Euro". In the corrected export the field still contains EUR, with the attribute omitted.
UBL
cbc:DocumentCurrencyCode/@name
Fails the rule
<cbc:DocumentCurrencyCode name="Euro">EUR</cbc:DocumentCurrencyCode>
Corrected
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>Rule versions
CEN · EN 16931 (KoSIT) 1.3.16
CEN · EN 16931 1.3.17