BR-NL-13

If an order line reference (BT-132) is used, there must be an order reference on the document level (BT-13)

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
ram:BuyerOrderReferencedDocument/ram:LineID[$si]
Test
exists(//ram:ApplicableHeaderTradeAgreement/ram:BuyerOrderReferencedDocument/ram:IssuerAssignedID)

Checked with Netherlands NLCIUS Invoice (CII)