Each Item attribute (BG-32) shall contain an Item attribute value (BT-161) or an Item attribute value with unit of measure (BT-X-12, with BT-X-12-0), but noth both.
The item attribute may contain either ram:Value or ram:ValueMeasure, but not both. If ram:ValueMeasure is used, its unitCode attribute must also have a non-empty value.
The value must be represented unambiguously either as a simple value or as a value with a unit of measure. A measure without a populated unit code is incomplete.
Both value forms are provided for an item attribute, or the measure has no unit code. You can use either a simple value or a value with a unit of measure.
- Keep either
ram:Valueorram:ValueMeasurefor the item attribute. - If you use
ram:ValueMeasure, provide a value for itsunitCodeattribute. - If you use the
ApplicableProductCharacteristic.Valueproperty, check the value it supplies. - Regenerate the invoice and validate it again.
<ram:ApplicableProductCharacteristic> <ram:Value>10</ram:Value> <ram:ValueMeasure unitCode="">10</ram:ValueMeasure> </ram:ApplicableProductCharacteristic>
<ram:ApplicableProductCharacteristic> <ram:ValueMeasure unitCode="KGM">10</ram:ValueMeasure> </ram:ApplicableProductCharacteristic>
ApplicableProductCharacteristic.Value(BT-161)TradeLineItem.ApplicableProductCharacteristics(BG-32)
ram:Value contains a simple value; ram:ValueMeasure contains a value with a unit of measure.
Technical details
The XPath permits either ram:Value without ram:ValueMeasure, or ram:ValueMeasure without ram:Value and with a non-empty unitCode attribute.
This rule applies to the value fields of an item attribute ram:ApplicableProductCharacteristic.
rule/@context)assert/@test)