BR-NL-13
If an order line reference (BT-132) is used, there must be an order reference on the document level (BT-13)
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.
cac:OrderLineReference/cbc:LineID[$si]
exists(/*/cac:OrderReference/cbc:ID)
Checked with Netherlands SI-UBL 2.0 Invoice (NLCIUS), Netherlands SI-UBL 2.0 Credit Note (NLCIUS)
ram:BuyerOrderReferencedDocument/ram:LineID[$si]
exists(//ram:ApplicableHeaderTradeAgreement/ram:BuyerOrderReferencedDocument/ram:IssuerAssignedID)
Checked with Netherlands NLCIUS Invoice (CII)