UBL-CR-563: A UBL invoice should not include the InvoiceLine Item PackQuantity
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[UBL-CR-563]-A UBL invoice should not include the InvoiceLine Item PackQuantity
not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cbc:PackQuantity)UBL-CR-563 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 is advisory: it checks that no cac:InvoiceLine or cac:CreditNoteLine contains a cac:Item/cbc:PackQuantity. The test is not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cbc:PackQuantity), so if any such element exists, the condition is false and this warning is reported. The document is not rejected for this warning.
How to fix
Remove cbc:PackQuantity from each cac:Item inside cac:InvoiceLine and cac:CreditNoteLine. Ensure the system that produces the invoice does not output this element in those line items.
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-563.
Validate an invoice against these rules · All release changes