VRBL-INV-ES-B2G-7
Basic Info
| Rule | In case the Document Currency Code is different from the Tax Currency Code, then the Tax Exchange Rate Calculation Rate and the Tax Exchange Rate Date must be provided. |
| Context |
/ubl:Invoice
|
| Pattern | vrbl-invoice-es-b2g |
| Severity | fatal |
Implementation
(
cbc:DocumentCurrencyCode != cbc:TaxCurrencyCode
and
boolean(cac:TaxExchangeRate/cbc:CalculationRate)
and
boolean(cac:TaxExchangeRate/cbc:Date)
)
or
cbc:DocumentCurrencyCode = cbc:TaxCurrencyCode
or
not(boolean(cbc:TaxCurrencyCode))