VRBL-INV-HU-1p0-32
Basic Info
|
Rule
|
The Legal Monetary Total in Tax Currency must be provided when Document Currency Code is different from Tax Currency Code. |
|
Context
|
/ubl:Invoice/cac:LegalMonetaryTotal
|
|
Pattern
|
vrbl-invoice-hu-1p0 |
|
Severity
|
fatal |
Implementation
(
not(boolean(/ubl:Invoice/cbc:TaxCurrencyCode))
or
/ubl:Invoice/cbc:DocumentCurrencyCode = /ubl:Invoice/cbc:TaxCurrencyCode
)
or
boolean(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:LegalMonetaryTotalExtension/vrbl:LegalMonetaryTotalInTaxCurrency)