UBL-CR-537: A UBL invoice should not include the InvoiceLine DocumentReference DocumentType
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[UBL-CR-537]-A UBL invoice should not include the InvoiceLine DocumentReference DocumentType
not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cbc:DocumentType)UBL-CR-537 is a warning rule in the schema layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is flagged but not rejected.
What this rule requires
The rule warns that a UBL invoice or credit note should not contain a cbc:DocumentType inside any cac:DocumentReference at line level (cac:InvoiceLine or cac:CreditNoteLine). This is an advisory warning: the document is not rejected, but the validator reports the presence of this element as not recommended.
How to fix
Remove cbc:DocumentType from every cac:DocumentReference that is a child of cac:InvoiceLine or cac:CreditNoteLine. If the producing system always adds a document type at line level, configure it to omit that element there. The rule does not state where else a document type may be used.
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-537.
Validate an invoice against these rules · All release changes