UBL-CR-518: A UBL invoice should not include the InvoiceLine PaymentPurposeCode
Peppol BIS Billing 3.0.20 · UBL
Original rule text
[UBL-CR-518]-A UBL invoice should not include the InvoiceLine PaymentPurposeCode
not((cac:InvoiceLine|cac:CreditNoteLine)/cbc:PaymentPurposeCode)UBL-CR-518 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 warning rule checks that a UBL invoice or credit note does not contain a PaymentPurposeCode inside any InvoiceLine or CreditNoteLine. The test is not((cac:InvoiceLine|cac:CreditNoteLine)/cbc:PaymentPurposeCode), so the warning is raised when such an element exists. Because the severity is warning, the validator reports it but the document is not rejected for this rule.
How to fix
Remove every cbc:PaymentPurposeCode element that appears under cac:InvoiceLine or cac:CreditNoteLine in the UBL document. If your system generates this element at line level, adjust it so it does not output PaymentPurposeCode there.
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-518.
Validate an invoice against these rules · All release changes