VRBL-INV-FR-CIUS-1p0-151

Basic Info

Rule When the Invoice Type Code represents a corrective invoice, the Invoice expects a maximum of one Billing Reference Group.
Context /ubl:Invoice
Pattern vrbl-invoice-fr-cius-1p0
Severity warning

Used Template: CountLessEqualOne

Parameter Value
probe = cac:BillingReference

Implementation

(
	not(contains($VRBL-CL-FR-InvoiceTypeCode-CorrectiveInvoice, concat(' ', cbc:InvoiceTypeCode, ' ')))
)
or
(
	count(cac:BillingReference) <= 1
)