VRBL-INV-FR-CIUS-1p0-52

Basic Info

Rule When the Invoice Subtype Code represents a special contract and the Invoice Line Group contains a Sub Invoice Line Group, the Line Tax Amount must exist within the Invoice Line Group.
Context /ubl:Invoice/cac:InvoiceLine
Pattern vrbl-invoice-fr-cius-1p0
Severity warning

Used Template: Exists

Parameter Value
probe = cac:TaxTotal[cbc:TaxAmount/@currencyID = /ubl:Invoice/cbc:DocumentCurrencyCode]/cbc:TaxAmount

Implementation

(
	not($isSpecialContract) or not(boolean(cac:SubInvoiceLine))
)
or
(
	boolean(cac:TaxTotal[cbc:TaxAmount/@currencyID = /ubl:Invoice/cbc:DocumentCurrencyCode]/cbc:TaxAmount)
)