BR-GA-6

The value of each Payment Means reference (NL-GA-02) MUST correspond with one and only one Payment means identifier (NL-GA-04)

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
/ubl:Invoice/cac:PaymentTerms/cbc:PaymentMeansID
Test
. = $payment-means-ids

Checked with Netherlands SI-UBL 2.0 G-account Invoice