BR-GA-2

The number of Payment Instructions (BG-16) in each invoice MUST be two.

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
Test
count(cac:PaymentMeans) = 2

Checked with Netherlands SI-UBL 2.0 G-account Invoice