Peppol BIS Billing 3.0.20 · UBL

UBL-CR-540: A UBL invoice should not include the InvoiceLine DocumentReference LocaleCode

Peppol BIS Billing 3.0.20 · UBL

warningschema

Original rule text

[UBL-CR-540]-A UBL invoice should not include the InvoiceLine DocumentReference LocaleCode

Stored validation assertion
not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cbc:LocaleCode)

UBL-CR-540 is a warning rule in the schema layer of Peppol BIS Billing 3.0.20 · UBL. An invoice that breaks it is flagged but not rejected.

What this rule requires

This advisory warning rule applies to UBL invoices and credit notes. It checks that no cac:InvoiceLine or cac:CreditNoteLine contains a cac:DocumentReference with a cbc:LocaleCode. The test is not(...), so the rule reports a warning if any such LocaleCode exists. Being a warning, the document is not rejected for this issue.

How to fix

Remove the cbc:LocaleCode element from every cac:DocumentReference that is inside a cac:InvoiceLine or cac:CreditNoteLine. If the invoice is generated by a system, configure it not to output LocaleCode in line-level document references.

Guidance on this rule. The original text above is authoritative.

Where to go next

No published Peppol BIS Billing UBL release comparison lists a change to UBL-CR-540.

Validate an invoice against these rules · All release changes