Rules
VRBL-INV-HU-1p0-30
Basic Info
| Rule | The Allowance Charge Amount in Tax Currency and Allowance Charge Tax Amount in Tax Currency must be provided when Document Currency Code is different from Tax Accounting Currency. |
| Context |
/ubl:Invoice/cac:AllowanceCharge
|
| 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:AllowanceChargeExtension/vrbl:AmountInTaxCurrency)
and
boolean(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:AllowanceChargeExtension/vrbl:TaxAmountInTaxCurrency)
)