VRBL-INV-PH-1p0-36

Basic Info

Rule When the Document Currency Code is different from PHP, the Legal Monetary Total Payable Alternative Amount must exist within the Document Totals.
Context /ubl:Invoice/cac:LegalMonetaryTotal
Pattern vrbl-invoice-ph-1p0
Severity fatal

Used Template: Exists

Parameter Value
probe = cbc:PayableAlternativeAmount

Implementation

(
	normalize-space(/ubl:Invoice/cbc:DocumentCurrencyCode) = 'PHP'
)
or
(
	boolean(cbc:PayableAlternativeAmount)
)