UBL-CR-589: A UBL invoice should not include the InvoiceLine Item CatalogueDocumentReference
Peppol BIS Billing 3.0.20 · UBL
Original rule text
[UBL-CR-589]-A UBL invoice should not include the InvoiceLine Item CatalogueDocumentReference
not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:CatalogueDocumentReference)UBL-CR-589 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 contain a cac:CatalogueDocumentReference inside the cac:Item of any cac:InvoiceLine or cac:CreditNoteLine. The test is not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:CatalogueDocumentReference), so if any such element is present, the validator reports a warning. Because severity is 'warning', the document is not rejected; it is an advisory recommendation.
How to fix
Remove the cac:CatalogueDocumentReference element from the cac:Item of every cac:InvoiceLine and cac:CreditNoteLine that includes it, or configure the producing system not to add it. No other change is required by this rule.
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-589.
Validate an invoice against these rules · All release changes