UBL-CR-522: A UBL invoice should not include the InvoiceLine InvoicePeriod DurationMeasure
Peppol BIS Billing 3.0.20 · UBL
Original rule text
[UBL-CR-522]-A UBL invoice should not include the InvoiceLine InvoicePeriod DurationMeasure
not((cac:InvoiceLine|cac:CreditNoteLine)/cac:InvoicePeriod/cbc:DurationMeasure)UBL-CR-522 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 is advisory and reports a warning when a UBL invoice or credit note contains cbc:DurationMeasure inside cac:InvoicePeriod at line level. The test checks that neither cac:InvoiceLine nor cac:CreditNoteLine has a cac:InvoicePeriod/cbc:DurationMeasure element.
How to fix
Remove cbc:DurationMeasure from the cac:InvoicePeriod of each cac:InvoiceLine or cac:CreditNoteLine. If the element is generated by your system, adjust the mapping so it is not emitted at line level.
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-522.
Validate an invoice against these rules · All release changes