VRBL-INV-TR-1p2-73

Basic Info

Rule When the Invoice Subtype Code is 'VRBL:TR:KAMU', the Payment Account ID must exist within the Invoice.
Context /ubl:Invoice
Pattern vrbl-invoice-tr-1p2
Severity fatal

Used Template: Exists

Parameter Value
probe = cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID

Implementation

(
	not(/ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:InvoiceSubtypeCode = concat($VRBL-TR-Prefix, 'KAMU'))
)
or
(
	boolean(cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID)
)