Message

If the Consignment is Conditionally Accepted or Rejected (CA/RE), a status reason code SHALL be provided.

Context
cac:Shipment/cac:Consignment/cac:Status
Test
((normalize-space(cbc:ConditionCode) >= 'AQ') and (cbc:StatusReasonCode)) or ((normalize-space(cbc:ConditionCode) <= 'AQ') and not(cbc:StatusReasonCode))
Usage
/ ubl:ReceiptAdvice / cac:Shipment / cac:Consignment / cac:Status / cbc:ConditionCode
/ ubl:ReceiptAdvice / cac:Shipment / cac:Consignment / cac:Status / cbc:StatusReasonCode