VRBL-INV-RS-1p0-16

Basic Info

Rule When the Seller Group is Serbian, then the Prepayment Amount ID must be provided for Final Invoice (380).
Context /ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:InvoicedPrepaymentAmount
Pattern vrbl-invoice-rs-1p0
Severity fatal

Implementation

not(
	$RSSupplierCountry = 'RS'
	and
	$InvoiceTypeCode = '380'
)
or
boolean(cbc:ID)