Peppol BIS Billing 3.0.21 · UBL

UBL-CR-594: A UBL invoice should not include the InvoiceLine Item CommodityClassification…

Peppol BIS Billing 3.0.21 · UBL

warningschema

Original rule text

[UBL-CR-594]-A UBL invoice should not include the InvoiceLine Item CommodityClassification CommodityCode

Stored validation assertion
not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:CommodityClassification/cbc:CommodityCode)

UBL-CR-594 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 advises that a UBL invoice or credit note should not contain an invoice line or credit note line item commodity classification commodity code. The test checks that no cac:InvoiceLine or cac:CreditNoteLine has a cac:Item/cac:CommodityClassification/cbc:CommodityCode. Because the severity is warning, a document containing this element is reported but is not rejected for this rule.

How to fix

Remove the cbc:CommodityCode element from cac:CommodityClassification under cac:Item in each cac:InvoiceLine or cac:CreditNoteLine where it appears. If the value is needed elsewhere, check whether the relevant business term is supported by another element, but this rule only requires removal of the line-level commodity code.

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-594.

Validate an invoice against these rules · All release changes