VRBL-INV-PEPPOL-PINT-AUNZ-1p0-12

Basic Info

Rule The Payment Account ID must exist, when the Payment Means Type Code equal 30 or 58.
Context /ubl:Invoice/cac:PaymentMeans
Pattern vrbl-invoice-peppol-pint-au-nz
Severity fatal

Implementation

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