BR-NL-2

The rule sets below word this rule differently; each wording is shown with its rule set.

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.

Message

For suppliers in the Netherlands, the invoice MUST contain either the buyer reference (cbc:BuyerReference) or the order reference (cac:OrderReference/cbc:ID)

Context
/*[$s]
Test
(cbc:BuyerReference) or (cac:OrderReference/cbc:ID)

Checked with Netherlands SI-UBL 2.0 Invoice (NLCIUS), Netherlands SI-UBL 2.0 Credit Note (NLCIUS)

Message

For suppliers in the Netherlands, the invoice MUST contain either the buyer reference (ram:BuyerReference) or the order reference (ram:BuyerOrderReferencedDocument/ram:IssuerAssignedID)

Context
ram:ApplicableHeaderTradeAgreement[$s]
Test
(ram:BuyerReference) or (ram:BuyerOrderReferencedDocument/ram:IssuerAssignedID)

Checked with Netherlands NLCIUS Invoice (CII)