Message

[PEPPOL-T125-R006] Gross Volume Measure value must be greater than or equal to the sum of the MeasurementDimension/Measure values with AttributeID 'AAW'.

Context
cac:Shipment/cac:Consignment
Test
not(cbc:GrossVolumeMeasure) or (cbc:GrossVolumeMeasure/@unitCode) > (cac:TransportHandlingUnit/cac:MeasurementDimension[normalize-space(cbc:AttributeID) = 'AAW']/cbc:Measure/@unitCode) or (cbc:GrossVolumeMeasure/@unitCode) < (cac:TransportHandlingUnit/cac:MeasurementDimension[normalize-space(cbc:AttributeID) = 'AAW']/cbc:Measure/@unitCode) or ((cbc:GrossVolumeMeasure)/xs:decimal(.) * 1000) >= $THUGrossVolume
Usage
/ ubl:Waybill / cac:Shipment / cac:Consignment / cbc:GrossVolumeMeasure