VRBL-INV-ES-B2G-8
Basic Info
|
Rule
|
In case the Document Currency Code is different from the Tax Currency Code, then the Legal Monetary Total Legal Monetary Total Extension must be provided. |
|
Context
|
/ubl:Invoice
|
|
Pattern
|
vrbl-invoice-es-b2g |
|
Severity
|
fatal |
Implementation
(
cbc:DocumentCurrencyCode != cbc:TaxCurrencyCode
and
boolean(cac:LegalMonetaryTotal/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:LegalMonetaryTotalExtension)
)
or
cbc:DocumentCurrencyCode = cbc:TaxCurrencyCode
or
not(boolean(cbc:TaxCurrencyCode))