Attribute '@unitCode' is required in this context.
The required @unitCode attribute is missing from ram:BasisPeriodMeasure. Without this attribute, the unit of the specified period is not provided.
The penalty period must be provided together with its unit so that its duration can be understood unambiguously.
No unit is specified for the penalty period in ram:BasisPeriodMeasure. Add the missing attribute so the duration is clear.
- Locate
ram:BasisPeriodMeasurein the penalty terms. - Add the
unitCodeattribute to this element. - Regenerate the invoice and validate it again.
Technical details
The XPath test @unitCode checks whether the unitCode attribute is present on the current ram:BasisPeriodMeasure.
The rule applies to ram:BasisPeriodMeasure, which specifies a period in the penalty terms within the document-level payment terms.
rule/@context)assert/@test)