VRBL-INV-PH-1p0-38

Basic Info

Rule When the Document Currency Code is different from PHP, the Invoice Line Item Price Extension in Tax Currency Amount must exist within the Invoice Line.
Context /ubl:Invoice/cac:InvoiceLine
Pattern vrbl-invoice-ph-1p0
Severity fatal

Used Template: Exists

Parameter Value
probe = cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceLineExtension/vrbl:ItemPriceExtensionInTaxCurrency/cbc:Amount

Implementation

(
	normalize-space(/ubl:Invoice/cbc:DocumentCurrencyCode) = 'PHP'
)
or
(
	boolean(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceLineExtension/vrbl:ItemPriceExtensionInTaxCurrency/cbc:Amount)
)