VRBL-INV-HU-1p0-41
Basic Info
|
Rule
|
The Invoice Line Price Alternative Currency Price Amount must be provided and Invoice Line Price Alternative Currency Price Amount Currency Code must be equal to Tax Accounting Currency when Document Currency Code is different from Tax Accounting Currency. |
|
Context
|
/ubl:Invoice/cac:InvoiceLine/cac:Price
|
|
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(cac:AlternativeCurrencyPrice/cbc:PriceAmount)
and
cac:AlternativeCurrencyPrice/cbc:PriceAmount/@currencyID = /ubl:Invoice/cbc:TaxCurrencyCode
)