VRBL-INV-PEPPOL-PINT-82

Basic Info

Rule If there is a Prepaid Payment Group then Legal Monetary Total Prepaid Amount must exist.
Context /ubl:Invoice/cac:LegalMonetaryTotal
Pattern vrbl-invoice-peppol-pint
Severity fatal

Implementation

(
	boolean(/ubl:Invoice/cac:PrepaidPayment)
	and 
	boolean(cbc:PrepaidAmount)
)
or
not(boolean(/ubl:Invoice/cac:PrepaidPayment))