VRBL-INV-AU-1p0-12

Basic Info

Rule The Payee Financial Account ID must exist, when the Payment Means Payment Means Code equal 30 or 58.
Context /ubl:Invoice/cac:PaymentMeans
Pattern vrbl-invoice-au-1p0
Severity fatal

Implementation

not(cbc:PaymentMeansCode='30' or cbc:PaymentMeansCode='58')
or
boolean(cac:PayeeFinancialAccount/cbc:ID)