Attribute '@unitCode' is required in this context.
The unitCode attribute is missing from ram:BasisPeriodMeasure, which identifies the unit of the period.
The basis-period measure needs a unit so that the stated period can be interpreted.
The unit is missing from the charge basis period. You can resolve this by adding it.
- Find
ram:BasisPeriodMeasurein the charge terms. - Add the
unitCodeattribute. - Generate the invoice again and validate it.
Technical details
The XPath test checks whether the unitCode attribute is present on ram:BasisPeriodMeasure.
The rule applies to ram:BasisPeriodMeasure in the charge terms within the document-level payment terms.
rule/@context)assert/@test)