VRBL-INV-RO-1p0-48
Basic Info
|
Rule
|
If the Document Currency Code is other than RON, then the Tax Currency Code must be RON. |
|
Context
|
/ubl:Invoice
|
|
Pattern
|
vrbl-invoice-ro-1p0 |
|
Severity
|
fatal |
Implementation
(
normalize-space(cbc:TaxCurrencyCode) = 'RON'
and
normalize-space(cbc:DocumentCurrencyCode) != 'RON'
)
or
(
normalize-space(cbc:TaxCurrencyCode) = 'RON'
and
normalize-space(cbc:DocumentCurrencyCode) = 'RON'
)
or
(
normalize-space(cbc:TaxCurrencyCode) != 'RON'
and
normalize-space(cbc:DocumentCurrencyCode) = 'RON'
)
or
(
not(boolean(cbc:TaxCurrencyCode))
and
normalize-space(cbc:DocumentCurrencyCode) = 'RON'
)