UBL-CR-525: A UBL invoice should not include the InvoiceLine OrderLineReference SalesOrderLineID
Peppol BIS Billing 3.0.20 · UBL
Original rule text
[UBL-CR-525]-A UBL invoice should not include the InvoiceLine OrderLineReference SalesOrderLineID
not((cac:InvoiceLine|cac:CreditNoteLine)/cac:OrderLineReference/cbc:SalesOrderLineID)UBL-CR-525 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
The rule advises that a UBL invoice or credit note should not include a line-level SalesOrderLineID inside OrderLineReference. The test passes only when no cac:InvoiceLine or cac:CreditNoteLine contains cac:OrderLineReference/cbc:SalesOrderLineID. Since this is a warning, a document with this element is reported but not rejected for it.
How to fix
Remove cac:OrderLineReference/cbc:SalesOrderLineID from every cac:InvoiceLine or cac:CreditNoteLine in the UBL document. If OrderLineReference has no other content, you can omit the whole OrderLineReference element.
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-525.
Validate an invoice against these rules · All release changes