BR-RO-A500
O factura trebuie sa contina maximum 500 de aparitii ale grupului Referinta la o factura anterioara (BG-3).
In English The allowed maximum number of occurences of Preceding invoice reference (BG-3) is 500.
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:BillingReference
count(cac:InvoiceDocumentReference) <= 500
Checked with Romania RO e-Factura Invoice (UBL), Romania RO e-Factura Credit Note (UBL)