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